Here's a child parser & display:
Code: Select all
[MeasureChild1]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureParent]
StringIndex=1
RegExpSubstitute=1
Substitute='</span>' : "", '<span.*>':""
[All_1_Sov_1]
Meter=STRING
MeasureName=MeasureChild1
FontColor=#Sov1Colour#
meterStyle=stylePOS
DynamicVariables=1
X=172
Y=49
The first is that trying to use an "IfEqualValue" etc command for the child parser value doesn't work as the + or - prefix means that the follwing number is ignored, in essence making the Calc see all values as 0.
The second problem is that with the child parser I can't seem to remove the + or - prefix in a second child parser as the RegExpSubstitute=1 seems to not function well with numerical operator symbols
I do have a work around for it, but it is very long winded and bumps the size of the script up dramatically as I'd have to have 3 measures of each value, so 48 measures.....would like to avoid this if I can but here it is:
Code: Select all
[MeasureChild1Col]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureParent]
StringIndex=1
RegExpSubstitute=1
Substitute='</span>' : "", ';.*':"", '<span.*:' : "", "green":"1", "red" : "2"
[All_1_Calc1]
Measure=Calc
Formula=[MeasureChild1Col]
DynamicVariables=1
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter AllPOS][!RainmeterHideMeter AllNEG][!RainmeterHideMeter AllNULL]
IfAboveValue=1
IfAboveAction=!Execute [!RainmeterHideMeter AllPOS][!RainmeterShowMeter AllNEG][!RainmeterHideMeter AllNULL]
IfBelowValue=1
IfBelowAction=!Execute [!RainmeterHideMeter AllPOS][!RainmeterHideMeter AllNEG][!RainmeterShowMeter AllNULL]
[AllPOS]
MeasureName=MeasureChild1
Meter=STRING
meterStyle=stylePOS
X=196
Y=49
[AllNEG]
MeasureName=MeasureChild1
Meter=STRING
meterStyle=styleNEG
X=196
Y=49
[AllNULL]
MeasureName=MeasureChild1
Meter=STRING
meterStyle=styleRight
X=196
Y=49