Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
Blur=1
MiddleMouseDownAction=!RainmeterDeactivateConfig
[Variables]
BackHeight=216
BackPadding=15
BarWidth=330
BackColor=25,25,25,200
BackBorder=255,255,0,50
FontFace=Microsoft Sans Serif
FontColor=#PureWhite#,240
FontSize=10
OfflineColor=255,0,0,255
OnlineStatusLast=Unknown
[Background]
Meter=Shape
Shape=Rectangle 0,0,(#BarWidth# + (#BackPadding#*2) + 1),#BackHeight# | Fill Color #BackColor# | StrokeWidth 1 | Stroke Color #BackBorder#
UpdateDivider=-1
[DetectInternet]
; Offline
; Online
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
Substitute="-1":"Offline", "1":"Online"
UpdateDivider=-1
[MeterInternetStatus]
Meter=String
MeasureName=DetectInternet
X=(#BarWidth#+#BackPadding#)
Y=15
FontSize=10
StringStyle=Bold
StringAlign=Right
FontColor=150,150,150,255
InlineSetting=Color | #OfflineColor#
InlinePattern=Offline
Text="Status: %1"
UpdateDivider=-1
;
;
; Update Everything on Switch in Online/Offline Status
; This Section Should Remain Last
[MeasureConnectionChangeCheck]
Measure=String
String=[DetectInternet]
IfMatch=#OnlineStatusLast#
IfNotMatchAction=[!SetVariable OnlineStatusLast [DetectInternet]][!UpdateMeter "MeterInternetStatus"]
IfMatchMode=1
!UpdateMeasure "DetectInternet"
DynamicVariables=1
UpdateDivider=1
But the problem remains that it does not work.
When run it works fine. Detects and displays whether it is online or not.
But change whether you are online or not and the skin does not update (unless refreshed)
The routines [DetectInternet] and [MeterInternetStatus] run only when updated by design.
I'd assume that the the first run through was pulling all the work and that [MeasureConnectionChangeCheck] wasn't running but: OnlineStatusLast gets the right value so the IfNotMatchAction is triggering.
That would point the finger at the following bang which may or may not be working right.
BUT [DetectInternet] is not registering the change so the !UpdateMeasure "DetectInternet" line is not working (?)
I'd rather avoid a heavy handed like a redraw (which still wouldn't update [DetectInternet] anyway) or refresh bang.
I assume I'm using or not a [] where I should/shouldn't but damned if I can find it.
Help please.