
52
2.0 Getting Started
2.10.7.5 getWindowClass(handle)
2.10.7.5.1 Description
Gets the title of the specified window. This method also works on child
windows such as buttons, edit boxes, and similar controls.
2.10.7.5.2 Arguments
Argument
Type
Description
handle
Number
The handle of the window.
2.10.7.5.3 Returns
A string containing the window title of the window or an empty string
if the window text couldn’t be retrieved.
2.10.7.5.4 Constants
None.
2.10.7.5.5 Example
2.10.7.6 getWindowText(handle)
2.10.7.6.1 Description
Gets the title of the specified window. This method also works on child
windows such as buttons, edit boxes, and similar controls.
2.10.7.6.2 Arguments
Argument
Type
Description
handle
Number
The handle of the window.
2.10.7.6.3 Returns
A string containing the window title of the window or an empty string
if the window text couldn’t be retrieved.
2.10.7.6.4 Constants
None.
2.10.7.6.5 Example
2.10.7.7 setForegroundWindow(handle)
2.10.7.7.1 Description
Sets the specified window to be the foreground window.
2.10.7.7.2 Arguments
Argument
Type
Description
handle
Number
The handle of the window.
2.10.7.7.3 Returns
Nothing.
2.10.7.7.4 Constants
None.
2.10.7.7.5 Example
2.10.7.8
getWindowText(handle, text)
2.10.7.8.1 Description
Sets the title of the specified window. This method also works on child
windows such as buttons, edit boxes, and similar controls.
2.10.7.8.2 Arguments
Argument
Type
Description
handle
Number
The handle of the window.
text
String
The title to set.
2.10.7.8.3 Returns
true if successful, false otherwise.
2.10.7.8.4 Constants
None.
2.10.7.8.5 Example