Your issue boils down to the way Substitute works. It does the first comparison and replacement, and that becomes the new value. Then it does the second comparison and replacement, HOWEVER the comparison is done on the new value, not the original one.
So consider..
String=1234
Substitute="3" : "21" , "2" : "43" , "1" : "34"
What will happen is that first 1234 will become 12214, then 12214 will become 1434314 and then 1434314 will become 344343344.
In your instance, you can fix this with:
In Regular Expression, the ^ character means "start of the string" and the $ character means "end of the string".
https://docs.rainmeter.net/manual/measures/general-options/substitute/#RegExpSubstitute
So consider..
String=1234
Substitute="3" : "21" , "2" : "43" , "1" : "34"
What will happen is that first 1234 will become 12214, then 12214 will become 1434314 and then 1434314 will become 344343344.
In your instance, you can fix this with:
Code:
RegExpSubstitute=1Substitute="^4$" : "18" , "^3$" : "12", "^2$" : "06" , "^1$" : "00"
https://docs.rainmeter.net/manual/measures/general-options/substitute/#RegExpSubstitute
Statistics: Posted by jsmorley — Yesterday, 10:06 pm