SysInfo: Difference between revisions
Jump to navigation
Jump to search
Created page with "SYSINFO(''number'') '''Description''' SYSINFO returns information about the device. This is not a complete list of return values: see Microsoft’s documentation on GetSyste..." |
No edit summary |
||
Line 1: | Line 1: | ||
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. | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| | | SM_CXScreen|| 0 || Width of screen | ||
|- | |- | ||
| | | SM_CYScreen || 1 || Height of screen | ||
|- | |- | ||
| || 10 || Milliseconds since 01/01/70 | | || 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 == | |||
<pre> | <pre> | ||
Rem SysInfo Example | |||
MsgBox "The device’s DPI is " & sysInfo(188) | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
The device’s DPI is 96. | The device’s DPI is 96. | ||
</pre> | </pre> | ||
[[Category:Language Reference]] |
Revision as of 03:51, 17 August 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.