Skip to main content
Version: 20 R7 BETA

SCREEN COORDINATES

SCREEN COORDINATES ( left ; top ; right ; bottom {; screenID {; screenArea}} )

ParameterTypeDescription
leftIntegerGlobal left coordinate of screen area
topIntegerGlobal top coordinate of screen area
rightIntegerGlobal right coordinate of screen area
bottomIntegerGlobal bottom coordinate of screen area
screenIDIntegerScreen number, or main screen if omitted
screenAreaIntegerEntire screen (default) or working area

Description

The SCREEN COORDINATES command returns in left, top, right, and bottom the global coordinates of the screen specified by screenID.

If you omit the screenID parameter, the command returns the coordinates of the main screen.

The optional screenArea parameter lets you specify if you want the coordinates for the entire screen area (default) or only for the available usable area. Two selectors are available:

ConstantValueComment
Screen size0The coordinates of the entire screen. (default value)
Screen work area1The coordinates of the available screen area that can be used (i.e., they are not occupied by Windows taskbar or macOS menu bar and Dock).

The following images demonstrate the differences between the screen size and the work area:

Notes:

  • If the taskbar or dock is automatically hidden, SCREEN COORDINATES always returns the entire screen size.
  • If an invalid value is given in screenID or screenArea, a zero is returned for all of the coordinates.

See also

Count screens
Menu bar screen
SCREEN DEPTH

Properties

Command number438
Thread safe