Get(WindowHeight)

Category: Get

Syntax: Get ( WindowHeight )

Parameters: None

Data type returned: Number

Description:

Returns the total height, in pixels, of the current window. The current window is usually the active window, but it's also possible for a script to run in a window that isn't the active foreground window.

The window height and width return the outside dimensions of a window. So, if you make a new window and specify a height and width of 300, then the Get (WindowHeight) and Get (WindowWidth) would both return 300.

Be aware that the window height and width are different from the window content height and width, which return the inside dimensions of a window.

Examples:

Function

Results

Get (WindowHeight)

Returns 541 when the window that is being acted upon is 541 pixels tall.

Категории