t = GetMonitors()
Please note that the way the monitor positions on the desktop screen are described is platform-dependent. See Multi-monitor support for details.
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.