SysInfo: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Line 36: Line 36:


[[Category:Language Reference]]
[[Category:Language Reference]]
[[Category:Miscellaneous]]

Revision as of 20:07, 14 September 2012

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.