Jason wrote: ↑May 26th, 2020, 1:53 pm
( It only occur when mouse moving horizontal )
No, wrong. It occurs whenever are you hovering the mouse over the surface occupied by the slide out icon, no matter the direction:
GIF.gif
Jason wrote: ↑May 26th, 2020, 1:53 pm
but overall is okay ~~
No, it's not. With this change I just wanted to make sure if there is only one single meter with the mouse actions set, the glitch is gone. Now that this proved to be true, we gonna do the next step.
Jason wrote: ↑May 26th, 2020, 1:53 pm
The glitch is gone....
Alright. According to this and what I wrote above, please try out the following code and let me know how does it work:
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
SkinWidth=200
[Metadata]
Name=unFold
Author=DevilRev
[Variables]
X1=-150
U=[!UpdateMeasureGroup Sliders][!UpdateMeterGroup Items][!Redraw]
[IconStyle]
Group=Items
ImageName=#@#Buttons\Transparent\Chrome.png
H=50
DynamicVariables=1
[Chrome]
Meter=Image
MeterStyle=IconStyle
X=(-#X1#)
ImageCrop=600,0,200,200
[MeterBackground]
Meter=Image
SolidColor=250,0,0,1
X=0r
Y=0r
W=200
H=50
MouseOverAction=[!CommandMeasure MeasureSlide "Stop 1"][!CommandMeasure MeasureSlide "Execute 2"]
MouseLeaveAction=[!CommandMeasure MeasureSlide "Stop 2"][!CommandMeasure MeasureSlide "Execute 1"]
LeftMouseDownAction=[!SetOptionGroup Items ImageAlpha "150"][!UpdateMeterGroup "Items"][!Redraw]
LeftMouseUpAction=[!SetOptionGroup Items ImageAlpha "255"]["Chrome.exe"][!UpdateMeterGroup "Items"][!Redraw]
RightMouseDownAction=[!Update]
Group=Items
[ChromeName]
Meter=Image
MeterStyle=IconStyle
X=50r
Y=0r
ImageCrop=0,0,600,200
[MeasureSlide]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat Left,5,30
Left=[!SetVariable X1 "(Clamp(#X1#-5,-150,0))"]#U#
ActionList2=Repeat Right,5,30
Right=[!SetVariable X1 "(Clamp(#X1#+5,-150,0))"]#U#
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.