(Simply hover your mouse over the Top or the Bottom of the skin, to see what is going on.)
For some reason though, the waiting number doesn't seem to be an issue to the code below as the waiting time is set to "5" yet the code works as expected.
(The code can also be found here: https://forum.rainmeter.net/viewtopic.php?p=114479#p114479 )
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
SkinWidth=300
SkinHeight=112
[Metadata]
Name=SkinWH
Author=JSMorley
Information=Example of the new SkinWidth / SkinHeight skin options in [Rainmeter].||The ActionTimer plugin used for the demonstration is included.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Aug 15, 2015
[Variables]
U=[!UpdateMeasureGroup Sliders][!UpdateMeter *][!Redraw]
SlideLeftX=300
SlideRightX=0
SlideDownY=-14
SlideUpY=126
[MeterSlideDownBack]
Meter=Image
X=0
Y=0
W=300
H=28
SolidColor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderDown "Stop 2"][!CommandMeasure SliderDown "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderDown "Stop 1"][!CommandMeasure SliderDown "Execute 2"]
[MeterSlideDown]
Meter=String
X=150
Y=#SlideDownY#
FontSize=15
FontColor=168,205,240,255
AntiAlias=1
StringAlign=CenterCenter
DynamicVariables=1
Text=Sliding Text Down
[SliderDown]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideDown, 5, 7
SlideDown=[!SetVariable SlideDownY (Clamp(#SlideDownY#+4,-14,14))]#U#
ActionList2=Repeat SlideUp, 5, 7
SlideUp=[!SetVariable SlideDownY (Clamp(#SlideDownY#-4,-14,14))]#U#
DynamicVariables=1
[MeterSlideLeftBack]
Meter=Image
X=0
Y=28
W=300
H=28
SolidColor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderLeft "Stop 2"][!CommandMeasure SliderLeft "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderLeft "Stop 1"][!CommandMeasure SliderLeft "Execute 2"]
[MeterSlideLeft]
Meter=String
X=#SlideLeftX#
Y=42
FontSize=15
FontColor=168,205,240,255
Padding=10,0,0,0
AntiAlias=1
StringAlign=LeftCenter
DynamicVariables=1
Text=Sliding Text Left
[SliderLeft]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideLeft, 10, 20
SlideLeft=[!SetVariable SlideLeftX (Clamp(#SlideLeftX#-15,0,300))]#U#
ActionList2=Repeat SlideRight, 10, 20
SlideRight=[!SetVariable SlideLeftX (Clamp(#SlideLeftX#+15,0,300))]#U#
DynamicVariables=1
[MeterSlideRightBack]
Meter=Image
X=0
Y=56
W=300
H=28
Solidcolor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderRight "Stop 2"][!CommandMeasure SliderRight "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderRight "Stop 1"][!CommandMeasure SliderRight "Execute 2"]
[MeterSlideRight]
Meter=String
X=#SlideRightX#
Y=70
FontSize=15
FontColor=168,205,240,255
Padding=0,0,10,0
AntiAlias=1
StringAlign=RightCenter
DynamicVariables=1
Text=Sliding Text Right
[SliderRight]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideRight, 10, 20
SlideRight=[!SetVariable SlideRightX (Clamp(#SlideRightX#+15,0,300))]#U#
ActionList2=Repeat SlideLeft, 10, 20
SlideLeft=[!SetVariable SlideRightX (Clamp(#SlideRightX#-15,0,300))]#U#
DynamicVariables=1
[MeterSlideUpBack]
Meter=Image
X=0
Y=84
W=300
H=28
SolidColor=0,0,0,255
SolidColor2=47,67,87,255
MouseOverAction=[!CommandMeasure SliderUp "Stop 2"][!CommandMeasure SliderUp "Execute 1"]
MouseLeaveAction=[!CommandMeasure SliderUp "Stop 1"][!CommandMeasure SliderUp "Execute 2"]
[MeterSlideUp]
Meter=String
X=150
Y=#SlideUpY#
FontSize=15
FontColor=168,205,240,255
AntiAlias=1
StringAlign=CenterCenter
DynamicVariables=1
Text=Sliding Text Up
[SliderUp]
Group=Sliders
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideUp, 5, 7
SlideUp=[!SetVariable SlideUpY (Clamp(#SlideUpY#-4,98,126))]#U#
ActionList2=Repeat SlideDown, 5, 7
SlideDown=[!SetVariable SlideUpY (Clamp(#SlideUpY#+4,98,126))]#U#
DynamicVariables=1
[MeterOverlay]
Meter=String
X=150
Y=63
FontSize=63
FontColor=150,150,150,50
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=SLIDE