ifcondition one current time

Help with creating, editing & fixing problems with skins

ifcondition one current time

November 14th, 2017, 4:08 pm
janoot
   [31 posts]

Hello,

I am looking for a way to "check if the time is x". For example:

Code: Select all

IfCondition=(Time = 16:00)
IfTrueAction=[...]


But honestly I have no idea how the units for the Measure=Time work..
Anyone who knows?
User avatar

Re: ifcondition one current time

November 14th, 2017, 4:28 pm
balala
Rainmeter Sage   [4982 posts]

Use distinct measures for hour and minute. Eg:

Code: Select all

[MeasureHour]
Measure=Time
Format=%H

[MeasureMinute]
Measure=Time
Format=%M

Then add the IfCondition to any of these measures, checking the hour and minute condition separately:

Code: Select all

[MeasureMinute]
...
IfCondition=((MeasureHour=16)&&(MeasureMinute=00))
IfTrueAction=[...]

Re: ifcondition one current time

November 14th, 2017, 5:36 pm
janoot
   [31 posts]

Great, thank you!
User avatar

Re: ifcondition one current time

November 14th, 2017, 5:58 pm
balala
Rainmeter Sage   [4982 posts]

Glad to help.

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: No registered users and 4 guests