Core Function WinGetClientSize

From Sputnik Wiki
Jump to: navigation, search
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]");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox