SysInfo
SYSINFO(number)
Description
SYSINFO returns information about the device. This is not a complete list of return values: see Microsoft’s documentation on GetSystemMetrics and GetDeviceCaps for more.
SM_CXSCREEN | 0 | Width of screen |
SM_CYSCREEN | 1 | Height of screen |
10 | Milliseconds since 01/01/70 | |
HORZREZ | 108 | HiRes Display width pixels |
VERTREZ | 109 | HiRes Display height pixels |
LOGPIXELSX | 188 | Pixels per inch horizontal |
LOGPIXELSY | 190 | Pixels per inch vertical |
Example
REM SYSINFO Example MSGBOX "The device’s DPI is " & sysInfo(188)
Output
The device’s DPI is 96.