Get(ScreenHeight)

Category: Get

Syntax: Get ( ScreenHeight )

Parameters: None

Data type returned: Number

Description:

Returns the number of pixels that are displayed vertically on the current screen. This corresponds to a user's operating system settings for display resolution.

Note when the active window spans more than one screen, this function calculates the value for the screen that contains the largest percentage of the window.

Use Get (ScreenHeight) and Get (ScreenWidth) to check minimum resolution settings on a user's computer.

If [Get (ScreenHeight)<1200 OR Get (ScreenWidth)<1600] Show Custom Dialog ["Resolution";"This application requires a minimum of 1600 x 1200 screen resolution."] Perform Script ["Close Solution Files"] End If

Examples:

Function

Results

Get (ScreenHeight)

Returns 854 on a monitor set to display at 1280x854.

Категории