Name
GetMonitors -- return information about available monitors (V6.0)
Synopsis
t = GetMonitors()
Function
This function can be used to obtain information about all monitors currently available to the system. A table will be returned that contains a number of subtables describing each individual monitor's dimensions and the position of this monitor on the desktop screen.

Please note that the way the monitor positions on the desktop screen are described is platform-dependent. See Multi-monitor support for details.

Inputs
none

Results
t
a collection of all available monitors and their desktop alignment
Example
t = GetMonitors()
For Local k = 0 To ListItems(t) - 1
   DebugPrint("Monitor", k + 1, "X:", t[k].X, "Y:", t[k].Y,
        "Width:", t[k].Width, "Height:", t[k].Height)
Next
The code above queries the operating system's monitor database and then prints information about all available monitors.

Show TOC