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

Help: Rainmeter Skins • Re: Combine the results of two measures

$
0
0
I have two measures. One results in the letter r or s (increasing or decreasing), and the second results in the numbers: 0, 10, 25, 50, and so on.
I assume the numbers are the percent of the moon being illuminated, right? If so, then, that's simple: create another String measure concatenating the strings from the measures providing the r/s and the 0/10/.../100, then add a Substitute to the new measure to "convert" its value to the "full moon" text and similar. Finally, for displaying the "full moon" and such texts, create another String meter referencing the newly created measure and you're done.

For example:

Code:

[mInPhase]Measure=......[mPhase]Measure=......[mPhaseText]Measure=StringString="[mInPhase][mPhase]"RegExpSubstitute=1Substitute="^r100$":"full moon",<the other possibilities and their replacements here, separated by commas>DynamicVariables=1...[MoonPhase]Meter=Image...[PhaseText]Meter=StringMeasureName=mPhaseTextText=%1...
P.S. Sorry for the delay in responsding, had a busy day today.

Statistics: Posted by Yincognito — Yesterday, 11:13 pm



Viewing all articles
Browse latest Browse all 1575

Trending Articles