Core Function WinGetClientSize
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> WinGetClientSize ( <title>, <text> ) </pre> === Description === Retrieves the size of a given window's client area. === Parameters === ==== Title ==== The title of the...") |
m (1 revision) |
Revision as of 21:40, 11 August 2014
WinGetClientSize ( <title>, <text> )
Contents |
Description
Retrieves the size of a given window's client area.
Parameters
Title
The title of the window.
Text
Optional; The text of the window to read.
Return Value
Success: Returns a 2-element array containing the following information:
$array[0] = Width of window's client area $array[1] = Height of window's client area
Failure: Returns numeric 0 if windows is not found.
Remarks
Use WinGetClientSize ("") to get active window.
See "WinTitleMatchMode" in Opt
Example
$size = WinGetClientSize(""); MsgBox("Active window's client size is (width,height): $size[0] $size[1]");