Get User's screen resolution: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library) |
m (Updated author and download links, and changed format of some pages.) |
||
Line 20: | Line 20: | ||
</highlight-nsis> | </highlight-nsis> | ||
Page author: Joelito | Page author: [[User:Joelito|Joelito]] |
Revision as of 12:38, 23 April 2005
The Script
; Get User screen resolution OutFile "ScreenRes.exe" Name "Get User Screen Resolution" Caption "Get User Screen Resolution" XPStyle "on" Function ".onInit" System::Call 'user32::GetSystemMetrics(i 0) i .r0' System::Call 'user32::GetSystemMetrics(i 1) i .r1' MessageBox MB_OK|MB_ICONINFORMATION "Screen Resolution: $\r$\n$0 X $1" Quit FunctionEnd Section "-boo" ; SectionEnd
Page author: Joelito