nitron Posted February 8, 2019 Posted February 8, 2019 Hy All, again I got a question. I try to convert wmic PATH Win32_videocontroller GET adapterram i tried to to it like in this example but my knoledge is not good enough Local $oWMI = ObjGet("winmgmts:root\CIMV2") Local $oDisks = $oWMI.ExecQuery("select * from WIN32_DiskDrive") So i tired Local $oWMI = ObjGet("winmgmts:root\CIMV2") Local $oGMRam= $oWMI.ExecQuery("Win32_videocontroller") $Memory=$oGMRam.adapterram but this does not work. I like to understand what i need to do?
Moderators JLogan3o13 Posted February 8, 2019 Moderators Posted February 8, 2019 @nitron You have been around long enough you should be able to figure out that the Examples forum is not where you add a new General Help question. Please pay attention to where you are posting in the future. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
nitron Posted February 8, 2019 Author Posted February 8, 2019 3 minutes ago, JLogan3o13 said: @nitron You have been around long enough you should be able to figure out that the Examples forum is not where you add a new General Help question. Please pay attention to where you are posting in the future. Sorry, i cant delete this topic....
Moderators Melba23 Posted February 8, 2019 Moderators Posted February 8, 2019 nitron, Do not worry, we have moved it for you. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Nine Posted February 8, 2019 Posted February 8, 2019 Local $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") Local $colItems = $objWMIService.ExecQuery('SELECT * FROM Win32_VideoController') If not IsObj($colItems) Then Exit MsgBox (0,"","Not an object") For $sItem In $colItems MsgBox (0,"",$sItem.AdapterRAM) Next “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
nitron Posted February 11, 2019 Author Posted February 11, 2019 On 8.2.2019 at 3:26 PM, Nine said: Local $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") Local $colItems = $objWMIService.ExecQuery('SELECT * FROM Win32_VideoController') If not IsObj($colItems) Then Exit MsgBox (0,"","Not an object") For $sItem In $colItems MsgBox (0,"",$sItem.AdapterRAM) Next thjank you! great! I still need to get a hang on this. 'SELECT * FROM Win32_VideoController' I will work on it
nitron Posted February 11, 2019 Author Posted February 11, 2019 On 8.2.2019 at 3:05 PM, Melba23 said: nitron, Do not worry, we have moved it for you. M23 Thank You!
Nine Posted February 11, 2019 Posted February 11, 2019 3 hours ago, nitron said: I still need to get a hang on this. 'SELECT * FROM Win32_VideoController' I will work on it It is "WQL for WMI". It is a very small subset of the SQL standards. Google it to learn its limitations. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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