Detect TabletPC: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
(No difference)

Revision as of 10:15, 7 November 2005

Author: crdoconnor (talk, contrib)


The Script

; Check whether a tablet PC is running
 
OutFile "DetectTabletPC.exe"
Name "Detect Tablet PC"
Caption "Detect Tablet PC"
XPStyle "on"
 
Function ".onInit"
System::Call 'user32::GetSystemMetrics(i 86) i .r0'
strcmp $0 0 +1 +3
MessageBox MB_OK|MB_ICONINFORMATION "This is not a tablet PC."
Quit
MessageBox MB_OK|MB_ICONINFORMATION "This is a tablet PC."
FunctionEnd
 
Section "-boo"
;
SectionEnd