Jump to content
Sign in to follow this  
AfX78z90

How can i see total memory ram in my computer?

Recommended Posts

AfX78z90

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 by AfX78z90

Share this post


Link to post
Share on other sites
Danny35d

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 virtual

All memory sizes are in kilobytes.

Hope this will help...

Edited by Danny35d

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites
AfX78z90

Thx it works, but now how can i see the name of my processor using autoit?

Share this post


Link to post
Share on other sites
Danny35d

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

Share this post


Link to post
Share on other sites
therks

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 by Saunders

Share this post


Link to post
Share on other sites
AfX78z90

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

Share this post


Link to post
Share on other sites
herewasplato

...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]

Share this post


Link to post
Share on other sites
Wus

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


Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×