AfX78z90 Posted July 25, 2005 Share Posted July 25, 2005 (edited) Hi We have the @ComputerName , @UserName , @OS_Version , DriveSpaceTotal("C:\") and more... How can i see the total of memory ram in my system? Maybe i should post in Support thread..sry and is possible to see the Processor name of the system like Pentium 4 1.8GHZ AMD Athlox XP 2.1???? Thx Edited July 25, 2005 by AfX78z90 Link to comment Share on other sites More sharing options...
Danny35d Posted July 25, 2005 Share Posted July 25, 2005 (edited) Try using MemGetStats ( )It will returns a seven-element array containing the memory information:$array[0] = Memory Load (Percentage of memory in use)$array[1] = Total physical RAM$array[2] = Available physical RAM$array[3] = Total Pagefile$array[4] = Available Pagefile$array[5] = Total virtual$array[6] = Available virtualAll memory sizes are in kilobytes.Hope this will help... Edited July 25, 2005 by Danny35d AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
AfX78z90 Posted July 25, 2005 Author Share Posted July 25, 2005 Thx it works, but now how can i see the name of my processor using autoit? Link to comment Share on other sites More sharing options...
Danny35d Posted July 25, 2005 Share Posted July 25, 2005 I don't know if is possible to see the Processor name with AutoIt macro or any other function but you can read this registry key:Hkey_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\ProcessorNameString AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
therks Posted July 25, 2005 Share Posted July 25, 2005 (edited) After a bit of searching, looks like you can use the COM support and access the WMI object. This is almost bit for bit out one of the test files (tests\com\wmiexample.au3) included with the beta version of AutoIt (which will be needed for this code to work) ; AutoItCOM 3.1.0 ; ; Test File ; ; Returns processor information $MyCompName = @ComputerName $oWMIservice = ObjGet("winmgmts:\\" & $MyCompName & "\root\cimv2") if @error then Msgbox (0,"","error getting object. Error code: " & @error) endif $ColProcessors = $oWMIService.ExecQuery("Select * from Win32_Processor") $Counter = 1 FOR $Processor IN $ColProcessors Msgbox(0, "WMI Test","Processor " & $Counter & @CRLF & "Id: " & $Processor.processorid & @CRLF & _ "Maximum Clock Speed: " & $Processor.MaxClockSpeed & @CRLF & _ "Name: " & $Processor.Name) $Counter = $Counter + 1 NEXT *Edit: Or use Danny35d's. His is probably faster. Edited July 25, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
AfX78z90 Posted July 26, 2005 Author Share Posted July 26, 2005 I don't know if is possible to see the Processor name with AutoIt macro or any other function but you can read this registry key:Hkey_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\ProcessorNameString<{POST_SNAPBACK}>Ill try this... Easiest simpliest and fastest with 2 lines i can see my Processor name thx for the help guys Link to comment Share on other sites More sharing options...
herewasplato Posted July 26, 2005 Share Posted July 26, 2005 ...with 2 lines i can see my Processor name...<{POST_SNAPBACK}>MsgBox(0,"",RegRead("Hkey_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\", "ProcessorNameString"))1 line .... :-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Wus Posted July 26, 2005 Share Posted July 26, 2005 you might wana check out this script... it enumerates the basic informationa bout a computer Its by Chaos2. I think I added all of 2 or 3 lines of code to it.pcinfo.au3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now