AutoHotkey Community

It is currently May 26th, 2012, 10:37 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: September 10th, 2009, 4:57 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
Is there a way to find information about actual memory sticks on the mother board? I am looking for size, type, and speed (I already have total RAM)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2009, 11:30 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
yes, but you probably need to use DllCall for that. Unless you can find the information in Windows Registry.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 2:08 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
I agree but my knowlege on dll calls is VERY limited. I was hoping someone would be able to provide information about this.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 2:10 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
The very basic information I would need is : how many sticks. any additional ram information would be gravy.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 2:17 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
WINMSD.EXE might be able to tell you this... and even work well with AHK...

Quote:
You can also execute the WINMSDP.EXE program from the command line. If you run the utility, the following menu appears:
C:\winnt\system32>winmsdp.exe

/A Print All Settings
/O OsVer
/D Drives
/S Services
/R Drivers
/M Memory
/I Interrupt Resources
/Y Memory Resources
/P Port Resources
/U DMA Resources
/W Hardware
/E Environment
/N Network


sauce: http://support.microsoft.com/kb/102468


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 2:46 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
the size you can get here:
http://www.autohotkey.com/forum/viewtop ... ht=sysinfo


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 3:55 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
Thanks randallf for WINMSD.EXE but it it from NT and A search fo C:\ did not find it on my Win XP sp2. but this lead me to look into msinfo32.exe. There is a few places where there seems to be hex format information that I cannot make sense of.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 4:07 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
You can use WMI. For example, through WMI COM
Code:
WMI_Query("","Win32_PhysicalMemory")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 5:30 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
Thanks Sean for the reply but I dont understand how to use the information. Read topic16632.htm [WMI COM] l I downloadded COM.ahk, IE.ahk, read the associated .txt files ran both ahk files tried to understand them by reading with txt editor. Could you provide a working example or what should I read?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 6:32 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
I assume you know the concept of Standard Library in AHK. Put COM.ahk into Lib subfolder or just use #Include, then run the following code.

Code:
COM_Init()
WMI_Query("","Win32_PhysicalMemory")
; MsgBox, % "<Capacity>`n" . WMI_Query("","Win32_PhysicalMemory","Capacity")
COM_Term()
Return

WMI_Query(Namespace, Class, Property = "")
{
   psvc :=   COM_GetObject("winmgmts:{impersonationLevel=impersonate}!" . Namespace)
   pset :=   COM_Invoke(psvc, "ExecQuery",  "SELECT * FROM " . Class)
   penm :=   COM_Invoke(pset, "_NewEnum")
   Loop, %   COM_Invoke(pset, "Count")
      If   COM_Enumerate(penm,pobj)=0
      {
         If  Not   Property
            MsgBox % COM_Invoke(pobj, "GetObjectText_")
         Else   sResult.=COM_Invoke(pobj, Property) . "`n"
         COM_Release(pobj)
      }
   COM_Release(penm)
   COM_Release(pset)
   COM_Release(psvc)
   Return   sResult
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 7:14 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
Thank you!
Who hoo!
I was not aware of the concept of Standard Library. Thank you for the the missing link.

:wink: :P :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 7:23 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
ggirf14 wrote:
Thanks randallf for WINMSD.EXE but it it from NT and A search fo C:\ did not find it on my Win XP sp2. but this lead me to look into msinfo32.exe. There is a few places where there seems to be hex format information that I cannot make sense of.


Really? I am on XP SP2 and it's just start > run > winmsd

It's possible that i intentionally downloaded it at one point but I dont recall doing it, maybe it's a different version too


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 8:10 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
Randallf:
Quote:
It's possible that i intentionally downloaded it at one point but I dont recall doing it, maybe it's a different version too

See the following URL: http://msdn.microsoft.com/en-us/library/aa392726.aspx


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Bing [Bot], JSLover, Miguel, rbrtryn, XstatyK, Yahoo [Bot] and 63 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