nattekeek wrote: ↑May 22nd, 2020, 9:24 pm
Not decided yet if I want to use SlideApps or SlideToolbar, neither if I want it left to right, or up or down.
I just want to try out some of the possibillities to see what fits best. Would be great if you can post an example, if not, no worries, you have already been a great help.
Alright, in meantime I worked a little bit with the SlideApps, so here is what I came out with (the example code). You have to set the desired width of the skin when it is slid out (this is the HorSliderWidth variable within the [Variables] section, initially set to 150). And for now, you have to manually move the skin to the right side of the screen, if you want it there. Later I probably will add a proper command to move it automatically, but didn't work so far with this.
I added up to 10 icons, but for now they have only colors set, no images. The images will be added later, especially if you find the code useful. I created the colors arbitrary, but if we'll replace them with the appropriate images, this has not a too big importance. The skin, depending on the resolution of the screen and the value of the HorSliderWidth variable, shows certain number of icons, up to 10 (but at least 2). All icons are set to open Notepad.exe, this will be modified later, accordingly to your needs.
So, what do you think, how does the skin work?
Code: Select all
[Rainmeter]
Update=-1
AccurateText=1
SkinWidth=#HorSliderWidth#
[Variables]
U=[!UpdateMeasure "MeasureSlide"][!UpdateMeterGroup "HorSliderItems"][!Redraw]
HorSliderWidth=150
X1=(#HorSliderWidth#-10)
[HorSliderIconStyle]
W=(#HorSliderWidth#-20)
H=(#HorSliderWidth#-20)
Group=HorSliderItems
[MeasureSlide]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat Left,25,10
Left=[!SetVariable X1 "(Clamp((#X1#-#HorSliderWidth#/10),0,(#HorSliderWidth#-10)))"]#U#
ActionList2=Repeat Right,25,10
Right=[!SetVariable X1 "(Clamp((#X1#+#HorSliderWidth#/10),0,(#HorSliderWidth#-10)))"]#U#
DynamicVariables=1
[MeterHorizontalSliderBackground]
Meter=Image
SolidColor=220,220,220,120
X=#X1#
Y=0
W=#HorSliderWidth#
H=#SCREENAREAHEIGHT#
DynamicVariables=1
MouseOverAction=[!CommandMeasure "MeasureSlide" "Execute 1"][!CommandMeasure "MeasureSlide" "Stop 2"]
MouseLeaveAction=[!CommandMeasure "MeasureSlide" "Stop 1"][!CommandMeasure "MeasureSlide" "Execute 2"]
Group=HorSliderItems
[MeterIcon1]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=255,0,0
X=10r
Y=10r
LeftMouseUpAction=["Notepad.exe"]
[MeterIcon2]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=0,255,0
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
[MeterIcon3]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=0,0,255
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((4*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
[MeterIcon4]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=255,240,0
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((5*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
[MeterIcon5]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=255,0,240
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((6*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
[MeterIcon6]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=0,255,240
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((7*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
[MeterIcon7]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=0,0,0
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((8*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
[MeterIcon8]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=240,240,240
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((9*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
[MeterIcon9]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=255,240,130
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((10*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
[MeterIcon10]
Meter=Image
MeterStyle=HorSliderIconStyle
SolidColor=13,255,240
X=0r
Y=10R
LeftMouseUpAction=["Notepad.exe"]
Hidden=((11*(#HorSliderWidth#-30)+10)>#SCREENAREAHEIGHT#)
Note that because the skin is completely mouse driven, I set the Update to
Update=-1, which means the skin is not updated at all. If for any reason (for instance you have to add something more to the code) you need a "normal" (default) update, please modify the Update into the [Rainmeter] section accordingly.