System Info

System Help

Sunday, January 22, 2006 by jlaj1989 | Discussion: DesktopX

Is there a way to get system information using a script instead of using the dx plugin. Ive looked around and didnt find anything about it. I was just wondering if this was possible. I would like more than one system stats in one object to display. Like in Vad M's system navagator. Thank You
First Previous Page 1 of 2 Next Last
Kevin_C
Reply #1 Monday, January 23, 2006 10:03 AM
Not sure exactly what you're going for but you can always use WMI to get the system info you're looking for.
jlaj1989
Reply #2 Monday, January 23, 2006 11:18 AM
What is WMI ? Im trying to have a bunch of stats scroll in a certin area like Vad M's system navagator.
Lantec
Reply #3 Monday, January 23, 2006 3:47 PM
What is WMI

W indows
M anagement
I nstrumentation

wmimgmt.msc
jlaj1989
Reply #4 Monday, January 23, 2006 4:48 PM
thank you
ExodusCrow
Reply #5 Monday, January 23, 2006 5:14 PM
A good tool to browse through your WMI is wbemtest.exe (c:\windows\system32\wbem\wbemtest.exe, I think it's only in xp pro). There are some good tutorials on the net but Microsoft has some too: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wbemtest_93qs.mspx

Don't forget to read up on Script-o-Matic
jlaj1989
Reply #6 Monday, January 23, 2006 7:22 PM
what is Script-o-Matic and where can i get it. Thank you
jlaj1989
Reply #7 Monday, January 23, 2006 7:51 PM
i found Script-o-Matic but how do you use it.
Chris TH
Reply #8 Monday, January 23, 2006 11:30 PM
how do you use it


Did you check the readme?

It's really quite informative and the utility as a whole looks really useful!


Posted via WinCustomize Browser/Stardock Central
jlaj1989
Reply #9 Tuesday, January 24, 2006 7:19 AM
i did look through the read me but how do i get it to work in desktop x.
RomanDA
Reply #10 Tuesday, January 24, 2006 9:14 AM
what system info are you looking to pull from wmi?
jlaj1989
Reply #11 Tuesday, January 24, 2006 10:59 AM
like video card stats, cpu stats, that kind of things. i have script o matic. But i dont know how to get the cpu and video card stats. even if i did find them how do i put them in desktop x. do i copy and paste?? Thanks You
ExodusCrow
Reply #12 Tuesday, January 24, 2006 3:18 PM
jlaj1989: check out Brad's tutorial on creating a widget. It uses WMI to poll disk space usage. Find it here: https://www.wincustomize.com/Articles.aspx?AID=67611

Read that, and then look at the code Script-o-Matic creates. Study the differences between the two and you should be able to do whatever you want with WMI
jlaj1989
Reply #13 Tuesday, January 24, 2006 4:21 PM
Thanks for the tutorial. ill have to study it a bit. Thank you
jlaj1989
Reply #14 Tuesday, January 24, 2006 5:05 PM
That helped a little but i still dont know how to display my video card stats.
jlaj1989
Reply #15 Tuesday, January 24, 2006 5:06 PM
Never mind i found it but i now have to figure out how to put it in a script.
jlaj1989
Reply #16 Tuesday, January 24, 2006 5:22 PM
I figured it out if you want it.

Dim objWMIService
Dim szDrive

Sub Object_OnScriptEnter
object.settimer 123, 5000
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Object_OnTimer123
End Sub

Sub Object_OnScriptExit
Set objWMIService = nothing
End Sub

Sub Object_OnTimer123
Dim colItems
Set colItems = objWMIService.ExecQuery("Select VideoProcessor from Win32_VideoController",,48)
For Each objItem In colItems
Object.text = objItem.VideoProcessor
Exit Sub
Next
End Sub
jlaj1989
Reply #17 Tuesday, January 24, 2006 6:02 PM
ok maybe i didnt figure all of it out. How do i have 2 objItems in the text.
_Martin_
Reply #18 Friday, January 27, 2006 3:26 AM
How about (in the above) using
Object.Text = "Resolution: " & objItem.CurrentHorizontalResolution & " x " & objItem.CurrentVerticalResolution

Just an example of combining strings
thomassen
Reply #19 Friday, January 27, 2006 4:28 AM

For Each objItem In colItems
Object.text = Object.text & objItem.VideoProcessor
Exit Sub
jlaj1989
Reply #20 Friday, January 27, 2006 6:38 PM
I understand how to do this. Thank you though. But how do i put the bolded parts:
Object.Text = "Resolution: " & objItem.CurrentHorizontalResolution & " x " & objItem.CurrentVerticalResolution

Into this line
Set colItems = objWMIService.ExecQuery("Select VideoProcessor from Win32_VideoController",,48)

Thank You

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01