Setup guide
Arguments
sWindowPath
Optional. Text string containing the Window Path to the window.
If omitted, a window object representing the current foreground window is returned.
Remarks
Click theicon in the scripteditor's toolbar to create a Window object from an existing window.
Properties
Remarks
You can resize, move, minimize, maximize and/or hide windows by setting the above properties.
Methods
hWnd
Win32 window handle of the window
Path
Read-only string containing the window path
Name
Read-only string containing the window's title
ClassName
Read-only string containing the window's class name
X
Read/write unsigned value representing the horizontal position of the upper left corner of the
window
Y
Read/write unsigned value representing the vertical position of the upper left corner of the
window
Width
Read/write unsigned width of the window
Height
Read/write unsigned height of the window
Minimized
Read/write boolean value indicating whether the window is minimized
Maximized
Read/write boolean value indicating whether the window is maximized
Visible
Read/write boolean value indicating whether the window is visible
Application
Read-only string containing the filename of the executable that owns the window.
Parent
The window's parent window object (read-only)
Close Closes the window.
SwitchTo Puts the window into foreground.
SetMousePosition Sets the mouse cursor relative to the window's upper left corner.
KeyStroke Type into the window.
KeyDown
KeyUp
Presses a key and holds it down (KeyDown) or releases a key (KeyUp).
PostMessage
SendMessage
Posts or sends a message to the window.
Window Returns a window object related to this window.
Refresh Refreshes the window object and updates internal window caches.