krakoukas wrote: ↑July 18th, 2019, 10:56 am
Or maybe with another MeasureCheck ? Best way ?
IfCondition is completely numeric. You can't use it to check strings. For a such action, you have to use IfMatch instead. Something like this: IfMatch=XXXX | YYYY | ZZZZ. There also are the IfMatchAction (executed when the measure match one of the enumerated strings) and IfNotMatchAction (executed when the measure doesn't match none of the enumerated strings) options.
I don't fully understand what you are going for here. We seem to have a mixture of things going on here. Is "Tab" a variable? If so then you would need to get it into a measure first in order to use IfMatch on it.
Substitutes=XXX|YYY|ZZZ
-- Substitutes="XXX|YYY|ZZZ"
-- does not work anymore
[Measure]
IfMatch=#Substitutes#
IfMatchAction=[!SetOption do something]
IfNotMatchAction=[!SetOption do other thing]
IfMatchMode=1
Substitutes=XXX|YYY|ZZZ
-- Substitutes="XXX|YYY|ZZZ"
-- does not work anymore
[Measure]
IfMatch=#Substitutes#
IfMatchAction=[!SetOption do something]
IfNotMatchAction=[!SetOption do other thing]
IfMatchMode=1
Because the value being tested by IfMatch is and must be the value being returned by the measure it is on. You can't manually define the value that is being tested.
Substitutes=XXX|YYY|ZZZ
-- Substitutes="XXX|YYY|ZZZ"
-- does not work anymore
[Measure]
Measure=String
String=#Substitutes#
DynamicVariables=1
IfMatch=XXX|YYY|ZZZ
IfMatchAction=[!SetOption do something]
IfNotMatchAction=[!SetOption do other thing]
I would caution that care be given to using IfMatchMode=1 on this. Ensure that you really mean, and really need, for it to fire the action EVERY TIME the measure is updated, even if the values being tested remain the same. Make sure you really want to spend the resources that entails.
While I'm watching the log I can see the "top" process changing from Rainmeter.exe to Firefox.exe from time to time, and the log entry is the correct one.
jsmorley wrote: ↑July 18th, 2019, 1:12 pm
Not sure. Seems to work for me...
Indeed, it does !
Thank you a lot Jsmorley, the #Filters# variables wasn't in the Variables section and wasn't interpreted. Works great & Thank you, as always !
Another stupid question from me, Balala