This is the first time I've post a topic, so if the img can be seen, excuse me, please.
As can be seen in the img, I am working on a function that the DOCK can be disappeared when mouse is not focused on the skin automatically. But now when I click the skin to open the programs, DOCKs disappeared, except the icon img.
Here's my code.
(the variables is originally set in a file and included in the skin, but I just write them in for the convenience of readers.)
Code: Select all
[Rainmeter]
Update=5000
AccurateText=1
OnRefreshAction=[!Draggable 0]
OnUnfocusAction=[!HideMeterGroup Launcher][!SetVariable Action 1][!UpdateMeter BG][!Update]
[Metadata]
Name=SAO Augma
Author=Setsukka
Version=1.0
License=CC BY - NC - SA 4.0
Information=Circle Launcher
[Variables]
AlphaCircle=200
ColorGlow=255,240,50
CircleColor1=250,195,50
CircleIcon1=
CirclePath1=
CircleColor2=240,80,90
CircleIcon2=
CirclePath2=
CircleColor3=200,200,200
CircleIcon3=
CirclePath3=
CircleColor4=20,180,210
CircleIcon4=
CirclePath4=
CircleColor5=20,200,140
CircleIcon5=
CirclePath5=
CircleColor6=190,165,100
CircleIcon6=
CirclePath6=
CircleColor7=120,110,200
CircleIcon7=
CirclePath7=
CircleColor8=10,170,150
CircleIcon8=
CirclePath8=
CircleColor9=130,90,60
CircleIcon9=
CirclePath9=
Wait=20
Action=1
Num=1
[BG]
Meter=Image
W=5
H=#WorkAreaHeight#
SolidColor=#ColorGlow#,200
SolidColor2=#ColorGlow#,0
DynamicVariables=1
UpdateDivider=-1
MouseOverAction=[!CommandMeasure MeasureAction "Execute #Action#"]
;====================================================================
[MeasureAction]
Measure=Plugin
Plugin=Actiontimer
DynamicVariables=1
ActionList1=Start1|Wait #Wait#|Repeat Show, #Wait#, 9|Wait #Wait#|End1
Start1=[!SetVariable Num 1][!UpdateMeasure MeasureAction]
Show=[!ShowMeterGroup #Num#][!SetVariable Num (#Num#+1)][!UpdateMeasure MeasureAction][!Redraw]
End1=[!SetVariable Action 2][!UpdateMeter BG]
ActionList2=Start2|Wait #Wait#|Repeat Hide, #Wait#, 9|Wait #Wait#|End2
Start2=[!SetVariable Num 9][!UpdateMeasure MeasureAction]
Hide=[!HideMeterGroup #Num#][!SetVariable Num (#Num#-1)][!UpdateMeasure MeasureAction][!Redraw]
End2=[!SetVariable Action 1][!UpdateMeter BG]
[BS]
AntiAlias=1
Hidden=1
[IS]
X=-30r
Y=-30r
W=60
ImageAlpha=#AlphaCircle#
AntiAlias=1
Hidden=1
[IS2]
X=-6r
Y=-6r
W=72
Hidden=1
AntiAlias=1
Group=Launcher
;====================================================================
[1]
Meter=Shape
X=150
Y=150
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor1#,#AlphaCircle#
Group=1|Launcher
MouseOverAction=[!SetOption 1 Size "Scale 1.2,1.2"][!SetOption 1 Color "Fill Color #CircleColor1#"][!ShowMeter I1Over][!HideMeter I1][!UpdateMeter 1][!Redraw]
MouseLeaveAction=[!SetOption 1 Size "Scale 1.0,1.0"][!SetOption 1 Color "Fill Color #CircleColor1#,#AlphaCircle#"][!HideMeter I1Over][!ShowMeter I1][!UpdateMeter 1][!Redraw]
LeftMouseUpAction=["#CirclePath1#"]
[I1]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon1#
Group=1|Launcher
[I1Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon1#
[2]
Meter=Shape
X=150
Y=235
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor2#,#AlphaCircle#
Group=2|Launcher
MouseOverAction=[!SetOption 2 Size "Scale 1.2,1.2"][!SetOption 2 Color "Fill Color #CircleColor2#"][!ShowMeter I2Over][!HideMeter I2][!UpdateMeter 2][!Redraw]
MouseLeaveAction=[!SetOption 2 Size "Scale 1.0,1.0"][!SetOption 2 Color "Fill Color #CircleColor2#,#AlphaCircle#"][!HideMeter I2Over][!ShowMeter I2][!UpdateMeter 2][!Redraw]
LeftMouseUpAction=["#CirclePath2#"]
[I2]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon2#
Group=2|Launcher
[I2Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon2#
[3]
Meter=Shape
X=150
Y=320
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor3#,#AlphaCircle#
Group=3|Launcher
MouseOverAction=[!SetOption 3 Size "Scale 1.2,1.2"][!SetOption 3 Color "Fill Color #CircleColor3#"][!ShowMeter I3Over][!HideMeter I3][!UpdateMeter 3][!Redraw]
MouseLeaveAction=[!SetOption 3 Size "Scale 1.0,1.0"][!SetOption 3 Color "Fill Color #CircleColor3#,#AlphaCircle#"][!HideMeter I3Over][!ShowMeter I3][!UpdateMeter 3][!Redraw]
LeftMouseUpAction=["#CirclePath3#"]
[I3]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon3#
Group=3|Launcher
[I3Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon3#
[4]
Meter=Shape
X=150
Y=405
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor4#,#AlphaCircle#
Group=4|Launcher
MouseOverAction=[!SetOption 4 Size "Scale 1.2,1.2"][!SetOption 4 Color "Fill Color #CircleColor4#"][!ShowMeter I4Over][!HideMeter I4][!UpdateMeter 4][!Redraw]
MouseLeaveAction=[!SetOption 4 Size "Scale 1.0,1.0"][!SetOption 4 Color "Fill Color #CircleColor4#,#AlphaCircle#"][!HideMeter I4Over][!ShowMeter I4][!UpdateMeter 4][!Redraw]
LeftMouseUpAction=["#CirclePath4#"]
[I4]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon4#
Group=4|Launcher
[I4Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon4#
[5]
Meter=Shape
X=150
Y=490
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor5#,#AlphaCircle#
Group=5|Launcher
MouseOverAction=[!SetOption 5 Size "Scale 1.2,1.2"][!SetOption 5 Color "Fill Color #CircleColor5#"][!ShowMeter I5Over][!HideMeter I5][!UpdateMeter 5][!Redraw]
MouseLeaveAction=[!SetOption 5 Size "Scale 1.0,1.0"][!SetOption 5 Color "Fill Color #CircleColor5#,#AlphaCircle#"][!HideMeter I5Over][!ShowMeter I5][!UpdateMeter 5][!Redraw]
LeftMouseUpAction=["#CirclePath5#"]
[I5]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon5#
Group=5|Launcher
[I5Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon5#
[6]
Meter=Shape
X=150
Y=575
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor6#,#AlphaCircle#
Group=6|Launcher
MouseOverAction=[!SetOption 6 Size "Scale 1.2,1.2"][!SetOption 6 Color "Fill Color #CircleColor6#"][!ShowMeter I6Over][!HideMeter I6][!UpdateMeter 6][!Redraw]
MouseLeaveAction=[!SetOption 6 Size "Scale 1.0,1.0"][!SetOption 6 Color "Fill Color #CircleColor6#,#AlphaCircle#"][!HideMeter I6Over][!ShowMeter I6][!UpdateMeter 6][!Redraw]
LeftMouseUpAction=["#CirclePath6#"]
[I6]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon6#
Group=6|Launcher
[I6Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon6#
[7]
Meter=Shape
X=150
Y=660
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor7#,#AlphaCircle#
Group=7|Launcher
MouseOverAction=[!SetOption 7 Size "Scale 1.2,1.2"][!SetOption 7 Color "Fill Color #CircleColor7#"][!ShowMeter I7Over][!HideMeter I7][!UpdateMeter 7][!Redraw]
MouseLeaveAction=[!SetOption 7 Size "Scale 1.0,1.0"][!SetOption 7 Color "Fill Color #CircleColor7#,#AlphaCircle#"][!HideMeter I7Over][!ShowMeter I7][!UpdateMeter 7][!Redraw]
LeftMouseUpAction=["#CirclePath7#"]
[I7]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon7#
Group=7|Launcher
[I7Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon7#
[8]
Meter=Shape
X=150
Y=745
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor8#,#AlphaCircle#
Group=8|Launcher
MouseOverAction=[!SetOption 8 Size "Scale 1.2,1.2"][!SetOption 8 Color "Fill Color #CircleColor8#"][!ShowMeter I8Over][!HideMeter I8][!UpdateMeter 8][!Redraw]
MouseLeaveAction=[!SetOption 8 Size "Scale 1.0,1.0"][!SetOption 8 Color "Fill Color #CircleColor8#,#AlphaCircle#"][!HideMeter I8Over][!ShowMeter I8][!UpdateMeter 8][!Redraw]
LeftMouseUpAction=["#CirclePath8#"]
[I8]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon8#
Group=8|Launcher
[I8Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon8#
[9]
Meter=Shape
X=150
Y=830
MeterStyle=BS
Shape=Ellipse 0,0,35|Stroke Color 0,0,0,0|Extend Size,Color
Size=Scale 1.0,1.0
Color=Fill Color #CircleColor9#,#AlphaCircle#
Group=9|Launcher
MouseOverAction=[!SetOption 9 Size "Scale 1.2,1.2"][!SetOption 9 Color "Fill Color #CircleColor9#"][!ShowMeter I9Over][!HideMeter I9][!UpdateMeter 9][!Redraw]
MouseLeaveAction=[!SetOption 9 Size "Scale 1.0,1.0"][!SetOption 9 Color "Fill Color #CircleColor9#,#AlphaCircle#"][!HideMeter I9Over][!ShowMeter I9][!UpdateMeter 9][!Redraw]
LeftMouseUpAction=["#CirclePath9#"]
[I9]
Meter=Image
MeterStyle=IS
ImageName=#CircleIcon9#
Group=9|Launcher
[I9Over]
Meter=Image
MeterStyle=IS2
ImageName=#CircleIcon9#
Here's the version of my Rainmeter
4.2.0 beta r3018 64-bit (Dec 20 2017)
Windows 10 Home China 64-bit (build 16299)
By the way, I want to use nesting variables to simplifed the code, but failed.
Hopefully someone can help me.
Thanks.