AutoHotkey Community

It is currently May 25th, 2012, 9:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Motherboard SN
PostPosted: November 19th, 2007, 9:03 am 
is there anyway to get the Serial No of Motherboard with AHK.

Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2007, 1:04 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
WMI with Win32_BaseBoard.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Motherboard SN
PostPosted: November 19th, 2007, 1:05 pm 
:?:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2007, 7:41 am 
Sean wrote:
WMI with Win32_BaseBoard.


Can you give me an example?
I am new I cannot understand you. :oops:

Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2007, 7:59 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Read this page before using it:
http://www.autohotkey.com/forum/topic25 ... hlight=wmi

Code:
COM_Init()
psvc := COM_GetObject("winmgmts:{impersonationLevel=impersonate}!" . "\\.\root\cimv2")
pset := COM_Invoke(psvc, "ExecQuery", "SELECT * FROM " . "Win32_BaseBoard")
penm := COM_Invoke(pset, "_NewEnum")
If   COM_Enumerate(penm, pobj) = 0
   SerialNumber := COM_Invoke(pitm:=COM_Invoke(pprs:=COM_Invoke(pobj, "Properties_"), "Item", "SerialNumber"), "Value"), COM_Release(pitm), COM_Release(pprs), COM_Release(pobj)
COM_Release(penm)
COM_Release(pset)
COM_Release(psvc)
COM_Term()

MsgBox, % SerialNumber


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2007, 11:58 am 
Hello Sean thanks for help I try this but I am receiving this message.
Image
I am using latest version of AHK


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2007, 2:43 pm 
Offline

Joined: October 22nd, 2007, 3:44 pm
Posts: 11
You need COM.ahk.
http://www.autohotkey.com/forum/viewtopic.php?t=22923

You will have to include it in your script with:
#include COM.ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2007, 3:54 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
It's the reason why I told "read the linked page first". You can use it via #Include as hotzenpl0tz said or Standard Library.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2007, 5:05 am 
@Sean
Can you get Processor SN?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2007, 5:49 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
AHKpandit wrote:
Can you get Processor SN?

Sure. Read:
http://www.autohotkey.com/forum/viewtop ... c&start=15
or
http://www.autohotkey.com/forum/viewtop ... &start=105


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Azevedo, BrandonHotkey, dra, gemisigo, MilesAhead, rbrtryn, tomL and 52 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group