Showing your IP with SysStats

Please need help, i try make a SysStat, but have problems...

So, i recent make a IP SHOW systat, but no found any meter to make this, can any helpme?, thank

#442715

I'm also looking to do the same thing, if anyone has any suggestions they'd be greatly appreciated.

Thanks,

Tyson

#452841

hey i dont know if you're still interrested but i stumpled across a script in my scripts folder that contained this:

' Retrieve information about the network adapters

strComputer = "."

Set objWMIService = GetObject("winmgmts:" & strComputer & "rootcimv2")

' Always update the display

Function ScriptMeter_Update

ScriptMeter_Update = True

End Function

' selector should be an index into the array, starting at 0

Function ScriptMeter_GetValue(selector)

on error Resume next

Set IPConfigSet = objWMIService.ExecQuery("Select IPAddress from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")

' Copy the IP Addresses into an array

Dim ip_address()

j = 0

For Each IPConfig in IPConfigSet

If Not IsNull(IPConfig.IPAddress) Then

For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress)

ReDim Preserve ip_address(j+1)

ip_address(j) = IPConfig.IPAddress(i)

j = j+1

Next

End If

Next

i = CInt(selector)

If i < UBound(ip_address) Then

ScriptMeter_GetValue = ip_address(i)

Else

ScriptMeter_GetValue = "'" & selector & "' is not a valid index"

End If

End Function

If you just put this in a .vbs file and add a new ASyncScriptMeter Class with the script diectory set to the vbs file and then make a new TextOverlay Class where the content format is %s the meter is set to the one mentioned earlier and the selector is set to 0 (or 1, 2, 3,... if you want to refer to a different network interface)

This worked for me, hope it helps others.

Tyson

#453041

HI Tyson,

I tried using your script but it kept crashing my OD. Is there anything else i should have done?

kith

#483791

@tyson

Your scritp worked just fine in my computer (Windows Vista Ultimate 32 bits).

This is the first time a script related to networks works in my computer... any attempt with the Wi-Fi configs yielded no results at all.

Do you have a configuration to retrieve the Wi-Fi data (SSID & Signal Strength)?

#499618