phoggy wrote: ↑November 22nd, 2022, 11:22 pm
When this code is used ...
Code: Select all
Text=Last draw [MeasureLatestDate] [MeasureBall1] [\2022] [MeasureBall2] [\2022] [MeasureBall3] [\2022] [MeasureBall4] [\2022] [MeasureBall5] [\2022] ([MeasureBallMB])
... the 1st and 6th numbers are correct but the middle 4 numbers are in descending order, which is very odd:
MM bad.PNG
OMG!!!
Very true.
Never even thought something like this might exist.
I can reproduce the issue. I used an extremely simple code, having a few WebParser measures:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
[MeasureRainmeter]
Measure=WebParser
UpdateRate=600
Url=file://#@#Test.txt
RegExp=(?siU)<Test>(.*)</Test>.*<Test>(.*)</Test>.*<Test>(.*)</Test>.*<Test>(.*)</Test>.*<Test>(.*)</Test>
[MeasureBall1]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=1
[MeasureBall2]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=2
[MeasureBall3]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=3
[MeasureBall4]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=4
[MeasureBall5]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=5
[MeterNumbers]
Meter=STRING
MeasureName=MeasureBall1
MeasureName2=MeasureBall2
MeasureName3=MeasureBall3
MeasureName4=MeasureBall4
MeasureName5=MeasureBall5
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=[\2022] 1: [MeasureBall1] [\2022] 2: [MeasureBall2] [\2022] 3: [MeasureBall3] [\2022] 4: [MeasureBall4] [\2022] 5: [MeasureBall5]#CRLF#[\2022] 1: %1 [\2022] 2: %2 [\2022] 3: %3 [\2022] 4: %4 [\2022] 5: %5
DynamicVariables=1
The content of the
#@#Test.txt file is this:
Code: Select all
<Test>2</Test>
<Test>14</Test>
<Test>16</Test>
<Test>38</Test>
<Test>66</Test>
See that additionally I added one more line in the Text option: the first one uses the names of the measures as section variables, while the second one uses the %1 - %5 parameters, refearing to the MeasureNameX options. I used the original
[\2022] character. And stupor (for me at least definitely): I get the result in reverse order. A screenshot of what the above code returns:
Skin.png
see that the returned numbers are in reverse order and even more: the indexes and the appropriate number are inversed. For instance, I get
2 :1 (2 is the number returned by the measure, 1 is its index) instead of what should get, namely
1: 2.
I couldn't imagine something like this might exist. However, it does!
Replacing the
[\2022] characters of the Text option with
[\x07E6], I get the same result: reverse order of the result.
Comment:
No more!!!
You do not have the required permissions to view the files attached to this post.