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

Help: Rainmeter Skins • Re: Help with clamping a variable

$
0
0
Solved it :D :

Code:

[mPage]Measure=StringString=#PageNo#IfMatch=1IfMatchAction=[!ShowMeterGroup Page1][!UpdateMeterGroup Page1][!HideMeter PageBkIcon][!Redraw]IfNotMatchAction=[!HideMeterGroup Page1][!UpdateMeterGroup Page1][!ShowMeter PageBkIcon][!Redraw]IfMatch2=2IfMatchAction2=[!ShowMeterGroup Page2][!UpdateMeterGroup Page2][!Redraw]IfNotMatchAction2=[!HideMeterGroup Page2][!UpdateMeterGroup Page2][!Redraw]IfMatch3=3IfMatchAction3=[!ShowMeterGroup Page3][!UpdateMeterGroup Page3][!Redraw]IfNotMatchAction3=[!HideMeterGroup Page3][!UpdateMeterGroup Page3][!Redraw]IfMatch4=4IfMatchAction4=[!ShowMeterGroup Page4][!UpdateMeterGroup Page4][!Redraw]IfNotMatchAction4=[!HideMeterGroup Page4][!UpdateMeterGroup Page4][!Redraw]IfMatch5=5IfMatchAction5=[!ShowMeterGroup Page5][!UpdateMeterGroup Page5][!HideMeter PageFwdIcon][!Redraw]IfNotMatchAction5=[!HideMeterGroup Page5][!UpdateMeterGroup Page5][!ShowMeter PageFwdIcon][!Redraw]DynamicVariables=1[sPage]FontSize=12FontColor=#Yellow#Group=Page[PageBkIcon]Meter=StringMeterStyle=sAllIcons | sPage | sHighlightText=#PageBkIcon#LeftMouseUpAction=[!SetVariable PageNo "(Clamp(#PageNo#-1,1,5))"][!UpdateMeasure mPage][!UpdateMeterGroup Page][!Redraw]X=([PageText2:X]-30)Y=140[PageText2]Meter=StringMeterStyle=sGlobalTextText=Page #PageNo#Group=PageX=40Y=r[PageFwdIcon]Meter=StringMeterStyle=sAllIcons | sPage | sHighlightText=#PageFwdIcon#LeftMouseUpAction=[!SetVariable PageNo "(Clamp(#PageNo#+1,1,5))"][!UpdateMeasure mPage][!UpdateMeterGroup Page][!Redraw]X=10RY=r

Statistics: Posted by sl23 — Today, 4:23 pm



Viewing all articles
Browse latest Browse all 1487

Trending Articles