It is currently March 28th, 2024, 12:35 pm

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 »

balala wrote: May 17th, 2020, 6:31 pm Could you please be a little bit more precise? Don't let us to figure this out, because we can't and don't even have time for this. So, what meter are you talking about?
The only meter with a [MouseAction] bang on it : [MeterFilesButton]

Code: Select all

[Rainmeter]
Update=25
AccurateText=1
Group=Frame+Logo

[Metadata]
Name= Clock + Files
Author= Mino
Information= Displays a clock and a button that toggles a files ramification
Version= 1
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
@include=#@#\Config.inc
MyVar=0
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

MouseAction1=[!ToggleMeter "MeterCircle2"][!Delay "1000"][!ToggleMeter "MeterCircle3"][!Delay "1000"][!ToggleMeter "MeterFilesLevel1"]
MouseAction0=[!ToggleMeter "MeterFilesLevel1"][!Delay "1000"][!ToggleMeter "MeterCircle3"][!Delay "1000"][!ToggleMeter "MeterCircle2"]

===== MEASURES =====

[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)]

[MeasureMyVar]
Measure=Calc
Formula=#MyVar#
IfCondition=(#CURRENTSECTION#=1)
UpdateDivider=-1
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

--- Connection circles | Files button | Clock ---

[MeterCircle1]
Meter=Image
ImageName=#@#\Images\Clock+Files\Circle1.png
Antialias=1

[MeterFilesButton]
Meter=Image
ImageName=#@#\Images\Clock+Files\FilesButton #MyVar#.png
LeftMouseUpAction=[!SetVariable MyVar "(1-#MyVar#)"][!UpdateMeasure "MeasureMyVar"][!Redraw][#MouseAction[#MyVar]]
Antialias=1
DynamicVariables=1

[MeterClockLine]
Meter=Image
ImageName=#@#\Images\Clock+Files\ClockLine.png
Antialias=1

[MeterClockPanel]
Meter=Image
ImageName=#@#\Images\Clock+Files\ClockPanel.png
Antialias=1
DynamicVariables=1

[MeterCircle2]
Meter=Image
ImageName=#@#\Images\Clock+Files\Circle2.png
Antialias=1
Hidden=1

[MeterCircle3]
Meter=Image
ImageName=#@#\Images\Clock+Files\Circle3.png
Antialias=1
Hidden=1

[MeterFilesLevel1]
Meter=Image
ImageName=#@#\Images\Clock+Files\FilesLevel1.png
Antialias=1
Hidden=1
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: May 17th, 2020, 6:00 pm But still, I have a meter with a MouseAction which works well, but not only the meter "has" the MouseAction but all the parts of the skin I click also toggles the MouseAction.
The problem is the meter itself: it is extremely large, having a size of 1920 x 1080 pixels. This is the size of the FilesButton 0.png and FilesButton 1.png images, used by the meter. The images have only a small visible part into their center, otherwise being transparent, so, even if one of them is there, you don't see it. However where the skin has other visible meters, this meter records the mouse click.
The solution is to edit the images, letting on them only the visible parts. This way you'd get two much smaller images (70 x 30 pixels, or so), but the meters wouldn't record the mouse clicks outside of them. If you do this, you have to properly place them, through X and Y options.
On the other hand all Image meters are so large and all are placed to X=0 and Y=0. This is not a good idea, it is much better to place the meters where they have to be and reduce their size as much as possible. Exactly to avoid such problems.
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: May 17th, 2020, 7:41 pm The problem is the meter itself: it is extremely large, having a size of 1920 x 1080 pixels. This is the size of the FilesButton 0.png and FilesButton 1.png images, used by the meter. The images have only a small visible part into their center, otherwise being transparent, so, even if one of them is there, you don't see it. However where the skin has other visible meters, this meter records the mouse click.
The solution is to edit the images, letting on them only the visible parts. This way you'd get two much smaller images (70 x 30 pixels, or so), but the meters wouldn't record the mouse clicks outside of them. If you do this, you have to properly place them, through X and Y options.
On the other hand all Image meters are so large and all are placed to X=0 and Y=0. This is not a good idea, it is much better to place the meters where they have to be and reduce their size as much as possible. Exactly to avoid such problems.
Okay i see. I knew the size would be a problem.
But the problem is that any meters + the one I will be adding (and I'm gonna add a lot) are all around the central [MeterShape].
So, having everything else placed relatively to this central Meter is hard.
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: May 17th, 2020, 7:59 pm But the problem is that any meters + the one I will be adding (and I'm gonna add a lot) are all around the central [MeterShape].
So, having everything else placed relatively to this central Meter is hard.
Might be, but that's it. Me at least don't see another solution. If you're creating so large meters, you'll have a lot of different kind of problems. It is much better to have meters with proper sizes, even if placing them is a little bit more difficult.
Sorry...
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: May 17th, 2020, 9:03 pm Might be, but that's it. Me at least don't see another solution. If you're creating so large meters, you'll have a lot of different kind of problems. It is much better to have meters with proper sizes, even if placing them is a little bit more difficult.
Sorry...
Yes okay, that's what I wanted to know. Photoshop will help me place each meter properly relatively to the central meter.
If I know where is the top-left corner and what are the X and Y of each meter relatively to the central one, it would be okay.
But still, in order for any meters to appear properly on screen, I need to have a skin with a pretty large size : so the only way to have a "big" skin is still to use great numbers for the X and Y of my first and central meter, correct ? If not, any meters on its left and top won't appear at all.
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: May 17th, 2020, 9:11 pm But still, in order for any meters to appear properly on screen, I need to have a skin with a pretty large size : so the only way to have a "big" skin is still to use great numbers for the X and Y of my first and central meter, correct ? If not, any meters on its left and top won't appear at all.
No, you can set precisely the size of the skin with the SkinWidth and SkinHeight options, added to the [Rainmeter] section.
But the meters having negative coordinates (so going to left and up of the upper left corner of skin), will never be visible.
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: May 17th, 2020, 9:22 pm No, you can set precisely the size of the skin with the SkinWidth and SkinHeight options, added to the [Rainmeter] section.
But the meters having negative coordinates (so going to left and up of the upper left corner of skin), will never be visible.
Yes okay, I'll do that, and make sure my central meter is in the middle of the skin with the appropriate coordinates and then I'll ajust every others meters accordingly.
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: May 17th, 2020, 9:34 pm Yes okay, I'll do that, and make sure my central meter is in the middle of the skin with the appropriate coordinates and then I'll ajust every others meters accordingly.
Alright, do it. And come back if further questions arise...
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 hope you are doing great.
I'm back at it with another skin with a slight problem I can't resolve.
I join it the whole skin.

My problem is this :
The slidingconnectors [meter] doesn't slide correctly.
It slides out well (just 13 pixel, hard to see).
But it definitively doesn't slide back in, it just disappears.
I don't know what I forgot or need to change...

I'd like the different LaunchersMeters to disappear on click and then the slidingconnectors to slide back in.
I hope it's clear
Attachments
Small Lauchers_1.rmskin
(50.06 KiB) Downloaded 8 times
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help: Switching wallpapers with a button

Post by balala »

Mino_el_Nukenin wrote: May 27th, 2020, 4:12 pm It slides out well (just 13 pixel, hard to see).
But it definitively doesn't slide back in, it just disappears.
Which meter are you talking about? Give an exact name, please.
Post Reply