Jump to content

How can i see total memory ram in my computer?


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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
Link to comment
Share on other sites

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...