Number value of a substituted String measure
Posted: March 15th, 2019, 8:20 pm
Sample skin:
Without the substitute, the number value of [MS_SomeString] is 1. With the substitute, it is still 1, despite replacing it with -1. Why, and how I can correct this, apart from creating a Calc measure taking the string value of [MS_SomeString] (since its number value is still 1) as its Formula just for that?
Code: Select all
[Rainmeter]
AccurateText=1
Update=1000
DynamicWindowSize=1
[MS_SomeString]
Measure=String
String="1"
UpdateDivider=-1
RegExpSubstitute=1
Substitute="^1$":"-1"
DynamicVariables=1
[MS_SomeCalc]
Measure=Calc
Formula=[MS_SomeString:]
UpdateDivider=-1
DynamicVariables=1
[MT_Test]
Meter=STRING
SolidColor=64,64,64,255
FontColor=255,255,255,255
Text="String: [MS_SomeString]#CRLF#Number: [MS_SomeString:]#CRLF#Calc: [MS_SomeCalc]"
DynamicVariables=1