Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1418

Help: Rainmeter Skins • Re: Recurring Countdown Timer & Substitution Problem

$
0
0
Resurrecting this thread...

I use the following Measure

Code:

[mEventTimeRecur2]Measure=STRINGString=#EventDateTime2#RegExpSubstitute=1;Substitute="^(\d{4})(.+)$":"[mNextYear]\2"Substitute="^(\d{4})(.+)$":"[mYear]\2"DynamicVariables=1
When the calendar goes 1 day past #EventDateTime2#, the meter displays the date/time as all zeros and generates this Parsing error: %Y-%m-%d %H:%M:%S (Win10\Calendar\Calendar (L).ini - [mEventTime2])

Commenting out this line: Substitute="^(\d{4})(.+)$":"[mYear]\2"
AND
Removing ; from this line: ;Substitute="^(\d{4})(.+)$":"[mNextYear]\2"

Fixes the issue until the next year rolls around.

I have tried using IfCondition by adding the following code to the measure, but it doesn't work with strings.

Code:

IfConditionMode=1IfCondition=(mDay > 10) && (mMonth > 9)IfTrueAction=[Substitute="^(\d{4})(.+)$":"[mNextYear]\2"]IfFalseAction=[Substitute="^(\d{4})(.+)$":"[mYear]\2"]
How can I make this work?

Statistics: Posted by cwfrizzell — Today, 2:37 am



Viewing all articles
Browse latest Browse all 1418

Trending Articles