I was following this Actiontimer article https://forum.rainmeter.net/viewtopic.php?t=23269
(Not the one by jsmorley, but the one by Danielpodo)
I am not able to comprehend the use of Setvariable. It is difficult to understand what excactly it does
All I want is the sidebar to minimize into a thin line and when clicked on again transforms into a sidebar.
Edit. Sorry here is my code
Code: Select all
[MeterMainbar]
Meter=image
X=#XPos#
Y=1
W=40
h=1080
StrokeWidth 0 | Stroke Color 0,120,255
SolidColor=#Accent01#
UpdateDivider=-1
DynamicVariables=1
Group=Sliders
LeftMouseUpAction=[!CommandMeasure DeceleratingSlider "Execute #State#"]
[DeceleratingSlider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideLeft, 30, 25
SlideLeft=[!SetVariable State "2"][!SetVariable Velocity "(Clamp((#Velocity#+1),0,20))"][!SetVariable XPos "(Trunc((#Amount#-#Amount#*(1-1/(2048**(0.05*#Velocity#))))))"]#Update#
ActionList2=Repeat SlideRight, 30, 25
SlideRight=[!SetVariable State "1"][!SetVariable Velocity "(Clamp((#Velocity#-1),0,20))"][!SetVariable XPos "(Trunc((#Amount#-#Amount#*(1-1/(2048**(0.05*#Velocity#))))))"]#Update#
DynamicVariables=1
Code: Select all
[Variables]
Velocity=0
Amount=200
XPos=200
State=1
Update=[!UpdateMeasure DeceleratingSlider][!UpdateMeter *][!Redraw]
Bgcolor=50,100,330,0
Flash=255, 204, 214,250
@include=#@#\Variables.inc
OffSet=-190