Seems i reached my limit of getting solutions in a day. Thanks ET.eclectic-tech wrote: ↑August 22nd, 2019, 11:36 am Set the initial value of MOver to zero in your [Variables] section.
I spotted one more issue (the only remaining) where MouseOverColor color is being overridden when i click the button, so it disapears until the nex mouseoveraction. i modified the code to make it more distinct, and MouseOverColor is a separated color used just for this purpose. The text should have that color all the time when the condition of MOver=1. That behaviour would look more natural.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
MiddleMouseDownAction=[!RefreshApp]
[Variables]
ActivatedSkinColor=105,105,105
ActivatedSkinTxtColor=255,200,0
DeactivatedSkinColor=64,64,64
DeactivatedSkinTxtColor=120,120,120
MouseOverColor=255,0,0
SkinTxtColor=105,105,105
MOver=0
[styleSkinsBoxes]
StringCase=UPPER
StringStyle=Bold
FontColor=#SkinTxtColor#
SolidColor=64,64,64,250
FontFace=#FontFamily#
FontSize=24
padding=10,10,10,10
AntiAlias=1
MouseOverAction= [!SetVariable MOver "1"][!UpdateMeasure MeasureBatteryLauncher]
MouseLeaveAction=[!SetVariable MOver "0"][!UpdateMeasure MeasureBatteryLauncher]
DynamicVariables=1
[MeasureBatteryLauncher]
Measure=Plugin
Plugin=ConfigActive
ConfigName=#ROOTCONFIG#\Battery
IfCondition=(#CURRENTSECTION# = 1)
IfTrueAction=[!SetOption MeterBatteryLauncher LeftMouseUpAction """[!DeactivateConfig "#ROOTCONFIG#\Battery"]"""][!SetOption "MeterBatteryLauncher" "SolidColor" "#ActivatedSkinColor#"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption MeterBatteryLauncher LeftMouseUpAction """[!ActivateConfig "#ROOTCONFIG#\Battery" "Battery.ini"]"""][!SetOption "MeterBatteryLauncher" "SolidColor" "#DeactivatedSkinColor#"][!UpdateMeter *][!Redraw]
IfCondition2=(#CURRENTSECTION# <= 0) && (#MOver# <= 0)
IfTrueAction2=[!SetVariable SkinTxtColor "#DeactivatedSkinTxtColor#"][!UpdateMeter *][!Redraw]
IfCondition3=(#CURRENTSECTION# <= 0) && (#MOver# = 1)
IfTrueAction3=[!SetVariable SkinTxtColor "#MouseOverColor#"][!UpdateMeter *][!Redraw]
IfCondition4=(#CURRENTSECTION# = 1) && (#MOver# = 1)
IfTrueAction4=[!SetVariable SkinTxtColor "#MouseOverColor#"][!UpdateMeter *][!Redraw]
IfCondition5=(#CURRENTSECTION# = 1) && (#MOver# <= 0)
IfTrueAction5=[!SetVariable SkinTxtColor "#ActivatedSkinTxtColor#"][!UpdateMeter *][!Redraw]
IfCondition6=(#CURRENTSECTION# <= 0)
IfTrueAction6=[!SetVariable SkinTxtColor "#DeactivatedSkinTxtColor#"][!UpdateMeter *][!Redraw]
IfCondition7=(#CURRENTSECTION# = 1)
IfTrueAction7=[!SetVariable SkinTxtColor "#ActivatedSkinTxtColor#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
[MeterBatteryLauncher]
Meter=String
MeterStyle=styleSkinsBoxes
Text=Battery