Detect TabletPC

From NSIS Wiki

Author: crdoconnor (talk, contrib)


[edit] 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
donate
ads