Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.44 KB | None | 0 0
  1. $iRam = _GetGraphicCardRAM()
  2. $iRam /= 1024 * 1024 ;Rechnet die Bytes in MByte um
  3. ConsoleWrite($iRam & " MB Ram insgesamt" & @CRLF)
  4.  
  5. Func _GetGraphicCardRAM($sComputer = "localhost")
  6.     Local $oWMI = ObjGet("winmgmts:\\" & $sComputer & "\root\CIMV2")
  7.     Local $aCol = $oWMI.ExecQuery("SELECT * FROM Win32_VideoController", "WQL", _
  8.                                           0x10 + 0x20)
  9.     For $oAct In $aCol
  10.         Return $oAct.AdapterRAM
  11.     Next
  12. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement