Figured out something weird, what I can't explain. Even if I post this in the Bugs & Feature Suggestions section, I'm positive this is not a bug, I'm just looking for an explanation.
Here is a simple code:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
FC=1
[MeasureRainmeter]
Measure=WebParser
UpdateRate=600
Url=file://#@#File.txt
RegExp=(?siU)<Num>(.*)</Num>
StringIndex=1
IfCondition=(#FC#=1)
IfTrueAction=[!SetVariable HT2 "[MyMeasure:]"]
IfFalseAction=[!SetVariable HT2 "([MyMeasure:])"]
[MyMeter]
Meter=STRING
MeasureName=MeasureRainmeter
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=1. %1#CRLF#HT2: #HT2#
DynamicVariables=1
Code: Select all
<Num>15</Num>
As you can see, the IfTrueAction and IfFalseAction options of the [MeasureRainmeter] measure are setting practically the same value for the HT2 variable, with one single difference: if the FC variable is 1, the HT2 variable gets a value equal to the non-existent [MyMeasure:] measure. Setting the FC variable to 0 in the [Variables] section, makes the IfCondition false. Accordingly the IfFalseAction sets for the HT2 variable the same value, just enclosed into parentheses. Now I get an error message in the log when refreshing the skin. This is not something weird in my opinion, much more weird is that the same error message is not appearing initially, when FC variable was set to 1.
Does anyone have an explanation of this?
Thanks in advance.