Scripting Counters
Using a Download/Upload Meter to learn DX Coding
Wednesday, January 19, 2005 by FireW0lf | Discussion: DesktopX
I'm an experienced VB Coder, but have never dabbled with counters
I've just downloaded DesktopX and see that some of the themes have download/upload meters that use counters (performance meters)
What I was wondering was - how do I use them? I've created a new object, set it as a text object, added in Performance Counters 2 - and then get stuck - can't seem to find what to do next so that it shows me my bandwidth usage
Any ideas?
Thanks in advance
Reply #2 Tuesday, August 15, 2006 3:22 PM
Then you can click the configure button. This will bring up the Performance Meter panel, and you can set up your meter. You don't have to use images, you can set the meter to display using solid colors as well.
The Chart Type dropdown lists the various graphic displays. You can also set it up to change the text of a text object by selecting the Object ID from the Set Text of Object drop down.
Click the Data Source panel to set up what you wish to monitor. For a Net Traffic meter, select System Performance meter, Change Button, choose Network Interface from Performance Object drop down. It should select the Bytes Total/sec counter automatically. Choose which device to monitor on the right, then click OK.
There's a lot you can do with these panels, but that should get you started!
As a note, Net Traffic monitors like this have to be manually set up to the right network interface device. Most of the Net Traffic DX widgets actually don't use the Performance Meters 2 plug-in, but rather access the WMI directly from script, which allows a bit more versatility. The plug-in does work, though, and can be handy.
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!







Reply #1 Tuesday, August 15, 2006 2:00 PM