Skip to main content
Version: Next

SCREEN COORDINATES

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

ParameterTypeDescription
leftLongint🡘Global left coordinate of screen area
topLongint🡘Global top coordinate of screen area
rightLongint🡘Global right coordinate of screen area
bottomLongint🡘Global bottom coordinate of screen area
screenIDLongint🡒Screen number, or main screen if omitted
screenAreaLongint🡒Entire 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