Jump to content

How to detect Tablet OS?


lyledg
 Share

Recommended Posts

GUys

I have written a script lately that needs to detect the OS. I know currently Autoit detects the usual and current OS's, but will there be plans to incorporate the detection of a Tablet OS in any future releases of Autoit..?

Cheers

Link to comment
Share on other sites

Or you could use DllCall() like:

Global Const $SM_TABLETPC = 86

$IsTablet = DllCall("user32.dll","int","GetSystemMetrics","int",$SM_TABLETPC)
If Not @error And $IsTablet[0] Then
;   It's a tablet pc;-)
EndIf

So long...

Edited by Holger
Link to comment
Share on other sites

  • 12 years later...
On 3/12/2005 at 6:22 PM, Holger said:

Or you could use DllCall() like:

 

Global Const $SM_TABLETPC = 86

$IsTablet = DllCall("user32.dll","int","GetSystemMetrics","int",$SM_TABLETPC)
If Not @error And $IsTablet[0] Then
;   It's a tablet pc;-)
EndIf

So long...

 

Edited by antonioj84
old tread
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...