It is currently April 20th, 2024, 1:32 pm

Cycling between multiple MeasureNames

Tips and Tricks from the Rainmeter Community
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Cycling between multiple MeasureNames

Post by smurfier »

This came up quite some time ago and I thought it would be nice to have it written up.

Code: Select all

[Variables]
mNum=1

[SomeMeter]
Meter=String
MeasureName=SomeMeasure
MeasureName2=SomeOtherMeasure
MeasureName3=YetSomethingElse
Text=%#mNum#
DynamicVariables=1
LeftMouseUpAction=!SetVariable mNum (#mNum#%3+1)
As you can see, we're placing several MeasureNames on the meter and simply cycling our variable between them. Then the variable in Text is resolved before the Measure is retrieved.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .