I want to have my wallpaper to be changed to one of four images based on the time of day. This is not a new problem here, but I'm running into two problems. The second, which is less important, is I'd like to know how to make the skin check the time every, say, five minutes, to make sure it's still within the right time to have the current wallpaper up. The first, and more important, is that as far as I can tell it's just not doing anything at all. I've changed the time several times, and I'm currently using a wallpaper that isn't even one of the four just so I'll know when it does anything, and to date, no change. I'll throw my in-progress code below, and any help is appreciated. There's probably quite a bit of superfluous extra in there, but I can't figure out what's going wrong.
Code: Select all
[Rainmeter]
Update=1000
[mTime]
Measure=Time
Format=%#H%M
DynamicVariables=1
[mCalc]
Measure=Calc
Formula=(([mTime]>0500)&&([mTime]<1200)?1:([mTime]>1200)&&([mTime]<1600)?2:([mTime]>1600)&&([mTime]<2100)?3:([mTime]>2100)&&([mTime]<0500)?4:0)
IfCondition=1
IfTrueAction=[!SetWallpaper "#@#tod 1.jpg" Fill][!Update]
IfCondition2=2
IfTrueAction2=[!SetWallpaper "#@#tod 2.jpg" Fill][!Update]
IfCondition3=3
IfTrueAction3=[!SetWallpaper "#@#tod 3.jpg" Fill][!Update]
IfCondition4=4
IfTrueAction4=[!SetWallpaper "#@#tod 4.jpg" Fill][!Update]
DynamicVariables=1
[mDummy]
Meter=String
Edit 2: Okay, so it's working now. I understand how this is working (see added code snippet at bottom), but I'd really like to not have to change it every single hour, so if there's a way to get my first code to work, I'd like to know. Thanks again.
Code: Select all
[Rainmeter]
Update=30000
OnUpdateAction=!SetWallpaper "#@#[mHour].jpg"
[mHour]
Measure=Time
Format=%#H
[mDummy]
Meter=String