I want a variable to increment by 1, 5 times, then stop until another action resets it to begin again.
I imagine it like this:
Code: Select all
[MeasureOne]
Measure=String
String=[#FolderOne]
IfMatch=^$
IfMatchAction=[!SetVariable FolderOne [#FolderSet]][!WriteKeyValue Variables FolderOne [#FolderSet] "#@#TitanVars.inc"][!UnPauseMeasure FolderLoopState][!UpdateMeter MeterOne]
IfNotMatchAction=[!UpdateMeasure "MeasureTwo"]
IfMatch2=^THIS PC$
IfMatchAction2=[!SetOption MeterOne Hidden "1"][!SetVariable LoopEnd ((#LoopEnd#+1)?5:[!PauseMeasure FolderLoopState])]
IfNotMatchAction2=[!SetOption MeterOne Hidden "0"]
DynamicVariables=1
[FolderLoopState]
Measure=Loop
StartValue=0
EndValue=#LoopEnd#
Increment=1
LoopCount=1
I ask for help, since testing will lead to unnecessary rainmeter crashes.
The Increment will advance the variable #FolderState# in this one of five similar Measures. :
Code: Select all
[MeasureFolderMode]
Measure=Calc
Formula=0
IfCondition=(#FolderState# = 1)
IfTrueAction=[!SetOption MeterOne Hidden "0"][!SetVariable FolderOne ""][!WriteKeyValue Variables FolderOne "" "#@#TitanVars.inc"][!SetOption mPath "Path" ""][!CommandMeasure mPath "Update"][!UpdateMeter *][!Redraw]