Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
R=0
U=[!UpdateMeasure MeasureRotate][!UpdateMeter MeterShape][!Redraw]
[MeterShape]
Meter=Shape
X=40
Y=40
Shape=Rectangle 0,0,100,30 | StrokeWidth 0 | Fill LinearGradient1 myGradient | Rotate #R#
myGradient=-#R# | 255,0,0,255 ; 0.0 | 0,255,0,255 ; 0.5 | 0,0,255,255 ; 1.0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureRotate "Execute 1"]
[MeasureRotate]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Rotate, 1, 180
Rotate=[!SetVariable R "(#R#+2 %360)]#U#
DynamicVariables=1