lyledg

How to detect Tablet OS?

5 posts in this topic

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

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

Run regedit and search for the term "Tablet" to see if any registry keys identify Tablet version of Windows?

Might also look at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

#5 ·  Posted (edited)

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