mak_kawa wrote: ↑February 22nd, 2020, 10:38 am
Config name is sometimes confusing (especially absolute/relative path at least for me!). So, it is better to write using the way as Jeff said.
Right. Note that a common mistake is using the name / path of the .ini file in bangs which need this parameter, instead of config name. Rainmeter identifies the skin through their config. Not needed to specify the name of the .ini file, since from one config only one single .ini file can be loaded at a time. That's why Rainmeter doesn't care about the name of the .ini file. In this case the name of the config is
test\test2 I suppose, assuming the skins .ini file is
Skins\test\test2\test2.ini.
One more: instead of setting the Hidden option of the meter which has to be hidden to 1, hiding it with the !HideMeter bang is much more comfortable, as mak_kawa suggested. Much more intuitive (my opinion).
So taking into account both of above comments, the IfTrueAction and IfFalseAction options of the [Measuretest] measure should look like this:
Code: Select all
[Measuretest]
...
IfTrueAction=[!HideMeter "MeterBox" "test\test2"][!Redraw]
IfFalseAction=[!ShowMeter "MeterBox" "test\test2"][!Redraw]
Note that beside hiding / showing the meter (with the !HideMeter / !ShowMeter bangs), I also added a
[!Redraw] bang, to make the hiding / showing instantaneous.
I can't see how !ToggleMeter could be used in this case. Depending on the hour, the meter should be hidden / shown.
mak_kawa wrote: ↑February 22nd, 2020, 10:38 am
2. Hidden= option value is 0 and 1. Maybe 2 works as "not 0". But if so, not recommended.
Setting the Hiddden option to 2 is good and it hides the meter. Maybe not the best practice, but it does definitely work. Any value above 0 is good, hides the meter. This isn't a problem.