Hello,
I have a skin that allows me to toggle the skins I've added using a button. My issue is that when the skin loads, the added skins start in an open state. However, after I close them using the button and then refresh Rainmeter, they reopen automatically.
I want the skins within this setup to be controlled only by the buttons and not affected by Rainmeter refreshes. Is there a way to achieve this? Thanks in advance!
[Rainmeter]
Update=500
AccurateText=1
DynamicWindowSize=1
OnRefreshAction=[!DisableMouseAction "Rainmeter" "RightMouseUpAction|RightMouseDownAction"]
[Variables]
ButtonState=1
[MeasureSkinStatus]
Measure=Loop
IfCondition=(#ButtonState#=1)
IfTrueAction=[!ActivateConfig "PcKapat"][!ActivateConfig "RestartTimer"]
IfFalseAction=[!DeactivateConfig "PcKapat"][!DeactivateConfig "RestartTimer"]
DynamicVariables=1
[MeasureButtonText]
Measure=String
String=#ButtonState#
Substitute="0":"
Aç","1":"
Kapat"
DynamicVariables=1
[ToggleText]
Meter=String
Text=[MeasureButtonText]
FontSize=12
FontColor=255,255,255
StringStyle=Bold
AntiAlias=1
X=110
Y=25
SolidColor=0,0,0,1
DynamicVariables=1
LeftMouseUpAction=[!SetVariable ButtonState "(#ButtonState#=0?1:0)"]
[TextDisplay]
Meter=String
Text=RESTART...
FontSize=10
FontColor=151,255,255
StringStyle=Bold
AntiAlias=1
X=32
Y=25
Padding=5,5,5,5
I have a skin that allows me to toggle the skins I've added using a button. My issue is that when the skin loads, the added skins start in an open state. However, after I close them using the button and then refresh Rainmeter, they reopen automatically.
I want the skins within this setup to be controlled only by the buttons and not affected by Rainmeter refreshes. Is there a way to achieve this? Thanks in advance!
[Rainmeter]
Update=500
AccurateText=1
DynamicWindowSize=1
OnRefreshAction=[!DisableMouseAction "Rainmeter" "RightMouseUpAction|RightMouseDownAction"]
[Variables]
ButtonState=1
[MeasureSkinStatus]
Measure=Loop
IfCondition=(#ButtonState#=1)
IfTrueAction=[!ActivateConfig "PcKapat"][!ActivateConfig "RestartTimer"]
IfFalseAction=[!DeactivateConfig "PcKapat"][!DeactivateConfig "RestartTimer"]
DynamicVariables=1
[MeasureButtonText]
Measure=String
String=#ButtonState#
Substitute="0":"
DynamicVariables=1
[ToggleText]
Meter=String
Text=[MeasureButtonText]
FontSize=12
FontColor=255,255,255
StringStyle=Bold
AntiAlias=1
X=110
Y=25
SolidColor=0,0,0,1
DynamicVariables=1
LeftMouseUpAction=[!SetVariable ButtonState "(#ButtonState#=0?1:0)"]
[TextDisplay]
Meter=String
Text=RESTART...
FontSize=10
FontColor=151,255,255
StringStyle=Bold
AntiAlias=1
X=32
Y=25
Padding=5,5,5,5
Statistics: Posted by Timya — Yesterday, 10:38 pm