AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

actual memory sticks on the mother board

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Thu Sep 10, 2009 3:57 pm    Post subject: actual memory sticks on the mother board Reply with quote

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)
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Thu Sep 10, 2009 10:30 pm    Post subject: Reply with quote

yes, but you probably need to use DllCall for that. Unless you can find the information in Windows Registry.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Sep 11, 2009 1:08 pm    Post subject: Reply with quote

I agree but my knowlege on dll calls is VERY limited. I was hoping someone would be able to provide information about this.
Back to top
View user's profile Send private message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Sep 11, 2009 1:10 pm    Post subject: Reply with quote

The very basic information I would need is : how many sticks. any additional ram information would be gravy.
Back to top
View user's profile Send private message
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Fri Sep 11, 2009 1:17 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Fri Sep 11, 2009 1:46 pm    Post subject: Reply with quote

the size you can get here:
http://www.autohotkey.com/forum/viewtopic.php?t=8042&highlight=sysinfo
Back to top
View user's profile Send private message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Sep 11, 2009 2:55 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2462

PostPosted: Fri Sep 11, 2009 3:07 pm    Post subject: Reply with quote

You can use WMI. For example, through WMI COM
Code:
WMI_Query("","Win32_PhysicalMemory")
Back to top
View user's profile Send private message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Sep 11, 2009 4:30 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2462

PostPosted: Fri Sep 11, 2009 5:32 pm    Post subject: Reply with quote

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
}
Back to top
View user's profile Send private message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Sep 11, 2009 6:14 pm    Post subject: Reply with quote

Thank you!
Who hoo!
I was not aware of the concept of Standard Library. Thank you for the the missing link.

Wink Razz Very Happy
Back to top
View user's profile Send private message
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Fri Sep 11, 2009 6:23 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Sep 11, 2009 7:10 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group