Core Function WinGetClientSize

From Sputnik Wiki
Revision as of 13:35, 1 December 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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