Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 723

Show all active IPv4 regardless of adapter name / index

$
0
0
Hi all,

Having a bit of a problem getting my head around this one. I'm having to revisit a skin I made some time ago and have noted a change in the way that the SysInfo Measure works which is now giving me some grief.

Ideally what I want to happen is that all active IP v4 addresses are shown (or maximum 4 or 5) which would be fine if this was for one specific device but the skin is deployed to a large number of devices with varying configurations. So, regardless of hardware and interface indexes, I need to show the IPv4 addresses. Previously I'd been just trying all indexes from 0-9 and hiding them if they're not present. I noted the other day that VPN addresses were not showing or we were getting duplicated entries. I note that this is because using "SysInfoData=0 for IP_ADDRESS now translates to "Best" and that my active VPN network index was 24 so was being ignored by the measures.

So... How can I get Rainmeter to effectively loop through active network adapters and display IPv4 information without knowing the names of the installed adapters or the index numbers?

An example of the current setup is...

Code:

[MeasureIP0]Measure=SysInfoSysInfoType=IP_ADDRESSSysInfoData=0IfMatch=^$|^127\.0\.0\.1$|^169\.(.*)$IfMatchAction=[!HideMeter "MeterResult01"]IfNotMatchAction=[!ShowMeter "MeterResult01"][MeasureIP1]Measure=SysInfoSysInfoType=IP_ADDRESSSysInfoData=1IfMatch=^$|^127\.0\.0\.1$|^169\.(.*)$IfMatchAction=[!HideMeter "MeterResult11"]IfNotMatchAction=[!ShowMeter "MeterResult11"][MeterResult01]Meter=STRINGMeasureName=MeasureIP0X=#CURRENTCONFIGWIDTH#Y=0rW=#CURRENTCONFIGWIDTH#StringAlign=RightPadding=10,5,15,0FontSize=12FontColor=255,255,255,255StringStyle=BoldAntiAlias=1Text=%1[MeterResult11]Meter=STRINGMeasureName=MeasureIP1X=#CURRENTCONFIGWIDTH#Y=0rW=#CURRENTCONFIGWIDTH#StringAlign=RightPadding=10,0,15,0FontSize=12FontColor=255,255,255,255StringStyle=BoldAntiAlias=1Text=%1
Thanks in advance...

Statistics: Posted by AmbientMike — Yesterday, 10:52 am — Replies 2 — Views 54



Viewing all articles
Browse latest Browse all 723

Trending Articles