I am using the .29 beta version of AutoIT and I am trying to figure out if a script is being run on a Laptop or Desktop. I found a list of the valid returns from the Win32_SystemEnclosure for VBScript which is below. When I pull up the ScriptOMatic from microsoft and run the VBScript for the Win32_SystemEnclosure it returns a 3 for enclosure type. When I pull up the Win32_SystemEnclosure from the AU3 ScriptOmatic it returns 1244292 for the Chassis Type which shockingly is not on this list. Does anyone have any ideas?
1 Then PCkind = "Other" ' Could use Virtual here for VM machine. 'VM machines have in my testing always pulled this Category.
2 Then PCkind = "Unknown"
3 Then PCkind = "Desktop"
4 Then PCkind = "Low Profile Desktop"
5 Then PCkind = "Pizza Box"
6 Then PCkind = "Mini Tower"
7 Then PCkind = "Tower"
8 Then PCkind = "Portable"
9 Then PCkind = "Laptop"
10 Then PCkind = "Notebook"
11 Then PCkind = "Hand Held"
12 Then PCkind = "Docking Station"
3 Then PCkind = "All in One"
14 Then PCkind = "Sub Notebook"
15 Then PCkind = "Space-Saving"
16 Then PCkind = "Lunch Box"
17 Then PCkind = "Main System Chassis"
18 Then PCkind = "Expansion Chassis"
19 Then PCkind = "SubChassis"
20 Then PCkind = "Bus Expansion Chassis"
21 Then PCkind = "Peripheral Chassis"
22 Then PCkind = "Storage Chassis"
23 Then PCkind = "Rack Mount Chassis"
24 Then PCkind = "Sealed-Case PC"
Thanks,
Mike
Edited by MikeOsdx, 13 May 2005 - 12:23 PM.





