I have an animated gif consisting of 30 images (0-29) and one icon.
I would like to click on the icon and gif to run once and stop at picture 15.
Then when I click on the icon again, keep running from picture 16 to picture 29 and stop again.
The process will resume again when the icon is clicked again
The code below runs gif when the skin starts and stops at picture 15.
I do not know how to run after the break from 16 to 29, and what commands to have the icon
Thanks
Code: Select all
[Rainmeter]
Update=100
[Variables]
ImageNumber=0
Pause=1
[ImageNumberCalc]
Measure=Calc
Formula=(ImageNumberCalc%16)+#Pause#
Substitute=".00000":""
IfEqualValue=15
IfEqualAction=[!SetVariable Pause (1-#Pause#)]
DynamicVariables=1
[ImageMeter]
Meter=Image
ImageName="Frame.\Frame[ImageNumberCalc].png"
X=25
Y=29
H=150
W=150
DynamicVariables=1
[Icon]
Meter=Image
ImageName=#@#icon.png
x=250
y=100
LeftMouseUpAction=