It is currently April 20th, 2024, 5:55 am

Help: Switching wallpapers with a button

Get help with creating, editing & fixing problems with skins
Mino_el_Nukenin
Posts: 231
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

Hi, I'm working on another skin and having a hard time finding the correct way to have the desired effect.
Here is the code first :

Code: Select all

[Rainmeter]
Update=25
AccurateText=1

[Variables]
@include=#@#\Config.inc
EllipseFillColor=363640
EllipseStrokeColor=ececec
ArcStrokeColor1=d68d38
ArcStrokeColor2=a2650c
ArcStrokeColor3=e8fa82
EllipseStrokeW=2
EllipseCenterX=959
EllipseCenterY=539
EllipseRadiusX=75
EllipseRadiusY=75
ArcStrokeW1=8
ArcStrokeW2=4
ArcStrokeW3=6
ArcCenterX=(#EllipseCenterX#)
ArcCenterY=(#EllipseCenterY#)
ArcRadiusX=(#EllipseRadiusX#-#EllipseStrokeW#/2-#ArcStrokeW1#/2)
ArcRadiusY=(#EllipseRadiusY#-#EllipseStrokeW#/2-#ArcStrokeW1#/2)
ArcRadiusX2=(#EllipseRadiusX#-12)
ArcRadiusY2=(#EllipseRadiusY#-12)
ArcRadiusX3=(#EllipseRadiusX#-17)
ArcRadiusY3=(#EllipseRadiusY#-17)
ArcSweepDirection=1
--- Outer arcs ---
ArcAngleStart1=0
ArcAngleEnd1=40
ArcAngleStart2=41
ArcAngleEnd2=61
ArcAngleStart3=62
ArcAngleEnd3=102
ArcAngleStart4=103
ArcAngleEnd4=113
ArcAngleStart5=114
ArcAngleEnd5=164
ArcAngleStart6=195
ArcAngleEnd6=215
ArcAngleStart7=216
ArcAngleEnd7=236
ArcAngleStart8=237
ArcAngleEnd8=247
ArcAngleStart9=248
ArcAngleEnd9=288
ArcAngleStart10=289
ArcAngleEnd10=309
--- Inner arcs ---
ArcAngleStart11=355
ArcAngleEnd11=50
ArcAngleStart12=100
ArcAngleEnd12=110
ArcAngleStart13=111
ArcAngleEnd13=195
ArcAngleStart14=196
ArcAngleEnd14=206
ArcAngleStart15=237
ArcAngleEnd15=277
ArcAngleStart16=289
ArcAngleEnd16=329
ArcAngleStart17=330
ArcAngleEnd17=354
--- Connecting arcs ---
ArcAngleStart18=20
ArcAngleEnd18=24
ArcAngleStart19=120
ArcAngleEnd19=124
ArcAngleStart20=189
ArcAngleEnd20=193
ArcAngleStart21=199
ArcAngleEnd21=203

StateP=1
StateC=1
SpeedP=2
SpeedC=2
RepeatP=80
RepeatC=110
WaitP=5
WaitC=5
OffsetP=80
OffsetC=110
U=[!UpdateMeasure "MeasureSlider"][!UpdateMeterGroup SlidingConnector][!UpdateMeterGroup SlidingMeter][!Redraw]

===== MEASURES ======================================================
--- Measures circles and arcs ---

[MeasureRotateCounterClockwise]
Measure=Calc
Formula=(MeasureRotateCounterClockwise+1)%360
OnUpdateAction=[!SetVariable ArcAngleStart1 (([MeasureRotateCounterClockwise]+#ArcAngleStart1#)%360)][!SetVariable ArcAngleEnd1 (([MeasureRotateCounterClockwise]+#ArcAngleEnd1#)%360)][!SetVariable ArcAngleStart2 (([MeasureRotateCounterClockwise]+#ArcAngleStart2#)%360)][!SetVariable ArcAngleEnd2 (([MeasureRotateCounterClockwise]+#ArcAngleEnd2#)%360)][!SetVariable ArcAngleStart3 (([MeasureRotateCounterClockwise]+#ArcAngleStart3#)%360)][!SetVariable ArcAngleEnd3 (([MeasureRotateCounterClockwise]+#ArcAngleEnd3#)%360)][!SetVariable ArcAngleStart4 (([MeasureRotateCounterClockwise]+#ArcAngleStart4#)%360)][!SetVariable ArcAngleEnd4 (([MeasureRotateCounterClockwise]+#ArcAngleEnd4#)%360)][!SetVariable ArcAngleStart5 (([MeasureRotateCounterClockwise]+#ArcAngleStart5#)%360)][!SetVariable ArcAngleEnd5 (([MeasureRotateCounterClockwise]+#ArcAngleEnd5#)%360)][!SetVariable ArcAngleStart6 (([MeasureRotateCounterClockwise]+#ArcAngleStart6#)%360)][!SetVariable ArcAngleEnd6 (([MeasureRotateCounterClockwise]+#ArcAngleEnd6#)%360)][!SetVariable ArcAngleStart7 (([MeasureRotateCounterClockwise]+#ArcAngleStart7#)%360)][!SetVariable ArcAngleEnd7 (([MeasureRotateCounterClockwise]+#ArcAngleEnd7#)%360)][!SetVariable ArcAngleStart8 (([MeasureRotateCounterClockwise]+#ArcAngleStart8#)%360)][!SetVariable ArcAngleEnd8 (([MeasureRotateCounterClockwise]+#ArcAngleEnd8#)%360)][!SetVariable ArcAngleStart9 (([MeasureRotateCounterClockwise]+#ArcAngleStart9#)%360)][!SetVariable ArcAngleEnd9 (([MeasureRotateCounterClockwise]+#ArcAngleEnd9#)%360)][!SetVariable ArcAngleStart10 (([MeasureRotateCounterClockwise]+#ArcAngleStart10#)%360)][!SetVariable ArcAngleEnd10 (([MeasureRotateCounterClockwise]+#ArcAngleEnd10#)%360)]

[MeasureRotateClockwise]
Measure=Calc
Formula=(MeasureRotateClockwise-1)%360
OnUpdateAction=[!SetVariable ArcAngleStart11 (([MeasureRotateClockwise]+#ArcAngleStart11#)%360)][!SetVariable ArcAngleEnd11 (([MeasureRotateClockwise]+#ArcAngleEnd11#)%360)][!SetVariable ArcAngleStart12 (([MeasureRotateClockwise]+#ArcAngleStart12#)%360)][!SetVariable ArcAngleEnd12 (([MeasureRotateClockwise]+#ArcAngleEnd12#)%360)][!SetVariable ArcAngleStart13 (([MeasureRotateClockwise]+#ArcAngleStart13#)%360)][!SetVariable ArcAngleEnd13 (([MeasureRotateClockwise]+#ArcAngleEnd13#)%360)][!SetVariable ArcAngleStart14 (([MeasureRotateClockwise]+#ArcAngleStart14#)%360)][!SetVariable ArcAngleEnd14 (([MeasureRotateClockwise]+#ArcAngleEnd14#)%360)][!SetVariable ArcAngleStart15 (([MeasureRotateClockwise]+#ArcAngleStart15#)%360)][!SetVariable ArcAngleEnd15 (([MeasureRotateClockwise]+#ArcAngleEnd15#)%360)][!SetVariable ArcAngleStart16 (([MeasureRotateClockwise]+#ArcAngleStart16#)%360)][!SetVariable ArcAngleEnd16 (([MeasureRotateClockwise]+#ArcAngleEnd16#)%360)][!SetVariable ArcAngleStart17 (([MeasureRotateClockwise]+#ArcAngleStart17#)%360)][!SetVariable ArcAngleEnd17 (([MeasureRotateClockwise]+#ArcAngleEnd17#)%360)][!SetVariable ArcAngleStart18 (([MeasureRotateClockwise]+#ArcAngleStart18#)%360)][!SetVariable ArcAngleEnd18 (([MeasureRotateClockwise]+#ArcAngleEnd18#)%360)][!SetVariable ArcAngleStart19 (([MeasureRotateClockwise]+#ArcAngleStart19#)%360)][!SetVariable ArcAngleEnd19 (([MeasureRotateClockwise]+#ArcAngleEnd19#)%360)][!SetVariable ArcAngleStart20 (([MeasureRotateClockwise]+#ArcAngleStart20#)%360)][!SetVariable ArcAngleEnd20 (([MeasureRotateClockwise]+#ArcAngleEnd20#)%360)][!SetVariable ArcAngleStart21 (([MeasureRotateClockwise]+#ArcAngleStart21#)%360)][!SetVariable ArcAngleEnd21 (([MeasureRotateClockwise]+#ArcAngleEnd21#)%360)]

--- Measure main circle 1 ---



--- Sliding Connector + Panel ---

[MeasureSlider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideOutC,#SpeedC#,#RepeatC# | Wait #WaitP# | Repeat SlideOutP#SpeedP#,#RepeatP# 
SlideOutC=[!Delay "3000"][!SetVariable StateC "2"][!SetVariable OffsetC (#OffsetC#+1)]#U#
SlideOutP=[!SetVariable StateP "2"][!SetVariable OffsetP (#OffsetP#-1)]#U#
DynamicVariables=1

===== METERS ========================================================

--- Circle and Rotating arcs ----------------------------------------

[MeterShapes]
Meter=Shape
Shape=Ellipse #EllipseCenterX#,#EllipseCenterY#,#EllipseRadiusX#,#EllipseRadiusY# | Fill Color #EllipseFillColor# | StrokeWidth #EllipseStrokeW# | Stroke Color #EllipseStrokeColor#
Shape2=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart1#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart1#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd1#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd1#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor1#
Shape3=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart2#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart2#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd2#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd2#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor1#
Shape4=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart3#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart3#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd3#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd3#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor2#
Shape5=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart4#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart4#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd4#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd4#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor1#
Shape6=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart5#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart5#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd5#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd5#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor2#
Shape7=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart6#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart6#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd6#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd6#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor1#
Shape8=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart7#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart7#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd7#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd7#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor2#
Shape9=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart8#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart8#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd8#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd8#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor2#
Shape10=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart9#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart9#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd9#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd9#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor1#
Shape11=Arc (#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleStart10#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleStart10#))),(#ArcCenterX#+#ArcRadiusX#*Cos(Rad(#ArcAngleEnd10#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY#*Sin(Rad(#ArcAngleEnd10#))),#ArcRadiusX#,#ArcRadiusY#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW1# | Stroke Color #ArcStrokeColor1#

Shape12=Arc (#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleStart11#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleStart11#))),(#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleEnd11#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleEnd11#))),#ArcRadiusX2#,#ArcRadiusY2#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW2# | Stroke Color #ArcStrokeColor2#
Shape13=Arc (#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleStart12#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleStart12#))),(#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleEnd12#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleEnd12#))),#ArcRadiusX2#,#ArcRadiusY2#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW2# | Stroke Color #ArcStrokeColor3#
Shape14=Arc (#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleStart13#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleStart13#))),(#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleEnd13#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleEnd13#))),#ArcRadiusX2#,#ArcRadiusY2#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW2# | Stroke Color #ArcStrokeColor2#
Shape15=Arc (#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleStart14#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleStart14#))),(#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleEnd14#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleEnd14#))),#ArcRadiusX2#,#ArcRadiusY2#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW2# | Stroke Color #ArcStrokeColor3#
Shape16=Arc (#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleStart15#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleStart15#))),(#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleEnd15#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleEnd15#))),#ArcRadiusX2#,#ArcRadiusY2#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW2# | Stroke Color #ArcStrokeColor3#
Shape17=Arc (#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleStart16#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleStart16#))),(#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleEnd16#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleEnd16#))),#ArcRadiusX2#,#ArcRadiusY2#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW2# | Stroke Color #ArcStrokeColor2#
Shape18=Arc (#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleStart17#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleStart17#))),(#ArcCenterX#+#ArcRadiusX2#*Cos(Rad(#ArcAngleEnd17#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY2#*Sin(Rad(#ArcAngleEnd17#))),#ArcRadiusX2#,#ArcRadiusY2#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW2# | Stroke Color #ArcStrokeColor3#

Shape19=Arc (#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleStart18#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleStart18#))),(#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleEnd18#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleEnd18#))),#ArcRadiusX3#,#ArcRadiusY3#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW3# | Stroke Color #ArcStrokeColor2#
Shape20=Arc (#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleStart19#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleStart19#))),(#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleEnd19#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleEnd19#))),#ArcRadiusX3#,#ArcRadiusY3#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW3# | Stroke Color #ArcStrokeColor2#
Shape21=Arc (#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleStart20#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleStart20#))),(#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleEnd20#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleEnd20#))),#ArcRadiusX3#,#ArcRadiusY3#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW3# | Stroke Color #ArcStrokeColor2#
Shape22=Arc (#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleStart21#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleStart21#))),(#ArcCenterX#+#ArcRadiusX3#*Cos(Rad(#ArcAngleEnd21#))),(#ArcCenterY#+(1-2*#ArcSweepDirection#)*#ArcRadiusY3#*Sin(Rad(#ArcAngleEnd21#))),#ArcRadiusX3#,#ArcRadiusY3#,360,#ArcSweepDirection#,0,0 | StrokeWidth #ArcStrokeW3# | Stroke Color #ArcStrokeColor3#
DynamicVariables=1
AntiAlias=1

--- Outer circle + Sliding Clock -------------------------------------------
-------------
[MeterCircle]
Meter=Image
ImageName=#@#\Images\Clock\Circle1.png
X=865
Y=445
DynamicVariables=1
AntiAlias=1

-------------

[MeterContainerC]
Meter=Image
ImageName=#@#\Images\Clock\ContainerC.png
X=755
Y=539
Antialias=1
DynamicVariables=1

[MeterSlidingConnector]
Group=SlidingConnector
Container=MeterContainerC
Meter=Image
ImageName=#@#\Images\Clock\ClockConnector.png
X=(#OffsetC#)r
Y=r
Antialias=1
DynamicVariables=1

------------

[MeterContainerP]
Meter=Image
ImageName=#@#\Images\Clock\ContainerP.png
X=675
Y=513
Antialias=1
DynamicVariables=1

[MeterSlidingPanel]
Group=SlidingPanel
Container=MeterContainerP
Meter=Image
ImageName=#@#\Images\Clock\ClockPanel.png
X=(#OffsetP#)r
Y=r
DynamicVariables=1
AntiAlias=1
Here what I'm trying to have :
- When this skin is activated : only the [MeterShapes] and its [MeasureRotateCounterClockwise] and [MeasureRotateClockwise] appear.
- then I'd want a small delay
- then the [MeterCircle] to appear
- then a small delay
- then the [MeterSlidingConnector] and [MeterSlidingPanel] (this panel will displays a clock I haven't added yet) to slide out.
- then the [MeterCircle] to rotate of 90° counterclockwise and stays like that

What I can't understand/find is how to add these actions and where, since it's not something triggered by a click but only happening when the skin is activated.
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 5th, 2020, 10:33 pm Working fine. I just placed the SetVariable and Update Measure at the end of the Mouse Action 1 since I want the the visual switch of teh button to happen last.
Yep, this was something I also wanted to recommend, but finally didn't. Glad if you figured it out how to do this.
Mino_el_Nukenin wrote: June 5th, 2020, 10:33 pm Yeah I forgot to include it when creating the package. (I'm not sure how to easily create a package; I usually just duplicate the skin and copy all the files I need into the folder since the Rainmeter "create a package" doesn't do it). Anyway the config just has some "links" to programs, images files and strings text in order to gain some time and also to easily tweak the skins.
Here is it described: https://docs.rainmeter.net/manual-beta/distributing-skins/
You don't have to duplicate anything. Rainmeter creates the skin installer from a config existing into your Skins folder.
Mino_el_Nukenin wrote: June 5th, 2020, 10:33 pm Okay good to know, I copied it from the first skin I found when I started Rainmeter and never changed it.
As said, it's not a problem, the additional backslashes don't disturb anything, you can add as many as you wish. But technically they are not needed.
Mino_el_Nukenin
Posts: 231
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 6th, 2020, 5:23 pm Here is it described: https://docs.rainmeter.net/manual-beta/distributing-skins/
You don't have to duplicate anything. Rainmeter creates the skin installer from a config existing into your Skins folder.
I know, but the problem is my skins are all part of one skin suite. So basically each skin is inside a subfolder of the main skin suite folder; so if i want to create a package with only one of these many skins, it will only create a package with the ini.file and not with the @ressources and config.ini since they are stored in another folder of the suite. And we can't select several folders when creating a package, that's why I duplicate the skin and copy/paste the @ files in its folder in order to have a single folder to create a single package.
Anyway that's not a big problem.
And if you could have a look at this posthttps://forum.rainmeter.net/viewtopic.php?p=177930#p177930 I have posted earlier.
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 6th, 2020, 9:44 pm I know, but the problem is my skins are all part of one skin suite. So basically each skin is inside a subfolder of the main skin suite folder; so if i want to create a package with only one of these many skins, it will only create a package with the ini.file and not with the @ressources and config.ini since they are stored in another folder of the suite. And we can't select several folders when creating a package, that's why I duplicate the skin and copy/paste the @ files in its folder in order to have a single folder to create a single package.
Anyway that's not a big problem.
No, I think it's not. In most cases, most users are creating the installer of the whole config, not just for one or a few skins of the config. If you want to do this, you indeed have to create a copy, taking care to have all needed resources copied to the duplicate config, then create the package. But in such cases you have to be extremely careful, especially if the size of the package matters, to not included unneeded resources, but to included all needed resources. Otherwise the package practically won't be usable.
Mino_el_Nukenin wrote: June 6th, 2020, 9:44 pm And if you could have a look at this posthttps://forum.rainmeter.net/viewtopic.php?p=177930#p177930 I have posted earlier.
Ok, I'm gonna take a look a little bit later today.
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 6th, 2020, 9:44 pm And if you could have a look at this posthttps://forum.rainmeter.net/viewtopic.php?p=177930#p177930 I have posted earlier.
Mino_el_Nukenin wrote: June 6th, 2020, 4:13 pm What I can't understand/find is how to add these actions and where, since it's not something triggered by a click but only happening when the skin is activated.
Add an OnRefreshAction option to the [Rainmeter] section and add the appropriate bangs there. Those bangs are executed only once, when you refresh / load the skin.
Mino_el_Nukenin
Posts: 231
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 7th, 2020, 5:39 pm Add an OnRefreshAction option to the [Rainmeter] section and add the appropriate bangs there. Those bangs are executed only once, when you refresh / load the skin.
Great !
And concerning the 90° rotation that should happen once, is this possible ?
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 7th, 2020, 6:46 pm And concerning the 90° rotation that should happen once, is this possible ?
I loaded your last code, but now I'm not sure what you mean by "90° rotation that should happen once". What are you meaning?
Mino_el_Nukenin
Posts: 231
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 7th, 2020, 7:06 pm I loaded your last code, but now I'm not sure what you mean by "90° rotation that should happen once". What are you meaning?
I'd like the [MeterCircle] to rotate 90° counterclockwise and stays on the position once it's reached.

Also the 2 [Meters] that should slide don't, I don't get why since I put the [!CommandMeasure MeasureSlider "Execute #StateP#"][!CommandMeasure MeasureSlider "Stop #StateP#"] in the OnRefreshAction.
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: June 7th, 2020, 7:11 pm I'd like the [MeterCircle] to rotate 90° counterclockwise and stays on the position once it's reached.
Alright, but unfortunately I don't have neither the involved image (in this case @Resources\Images\Clock\Circle1.png), nor the other resources needed by the code. Maybe a package has been posted a while ago here on the forum, but there are two problems:
  • I don't have anymore the package (if it indeed has been posted before).
  • In the current topic are too many posts to can look for it.
So, please pack the config again and upload the package once again.
Mino_el_Nukenin
Posts: 231
Joined: April 24th, 2020, 7:39 pm
Location: France

Re: Help: Switching wallpapers with a button

Post by Mino_el_Nukenin »

balala wrote: June 7th, 2020, 7:30 pm Alright, but unfortunately I don't have neither the involved image (in this case @Resources\Images\Clock\Circle1.png), nor the other resources needed by the code. Maybe a package has been posted a while ago here on the forum, but there are two problems:
  • I don't have anymore the package (if it indeed has been posted before).
  • In the current topic are too many posts to can look for it.
So, please pack the config again and upload the package once again.
No i've just posted the code you have. I'll pack it rigth away, it will indeed be easier to visualize it all
Last edited by Mino_el_Nukenin on June 7th, 2020, 7:44 pm, edited 1 time in total.