Jump to content
lyledg

How to detect Tablet OS?

Recommended Posts

lyledg

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

Share this post


Link to post
Share on other sites
cowsmanaut

the way I would think you could detect that would be to see if any of the tablet OS unique processes were running. I'm sure there are a few.

just a thought..

moo

Share this post


Link to post
Share on other sites
Holger

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

Share this post


Link to post
Share on other sites
antonioj84
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

Share this post


Link to post
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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.