Actually, none of your skins "work", because it's not IfTrueCondition, but IfTrueAction:I have added the following code to a skin which is just a background, however, despite mHour being the correct value (I checked through "open log > skins"), the layout does not get changed. Any ideas on how to fix this?I also have another background skin which is displayed when the layout changes which code is nearly identical:Code:
[Rainmeter][Background]Meter=ImageImageName=firewatch-day.jpgW=2048H=1280[mHour]Measure=TimeFormat=%HUpdateDivider=10IfCondition=(mHour >=18 || mHour <6)IfTrueCondition=[!LoadLayout "firewatchEvening"][dummy]Meter=String
Any help would be greatly appreciatedCode:
[Rainmeter][Background]Meter=ImageImageName=firewatch-evening.jpgW=2048H=1280[mHour]Measure=TimeFormat=%HUpdateDivider=10IfCondition=(mHour >=6 && mHour <18)IfTrueCondition=[!LoadLayout "firewatchDay"][dummy]Meter=String
https://docs.rainmeter.net/manual/measures/general-options/ifconditions/
Also, if your layouts are simply made of the opposite skin, you could just change the value of the ImageName option from your Image meter accordingly, in a single skin, via !SetOption, !UpdateMeter and !Redraw in the IfTrueAction / IfTrueAction2 of some corresponding IfCondition / IfCondition2, roughly similar to the example code at the end of the page linked above.
https://docs.rainmeter.net/manual/bangs/#UpdateMeter
https://docs.rainmeter.net/manual/bangs/#Redraw
Statistics: Posted by Yincognito — Today, 3:49 am