Code: Select all
[Variables]
TogglePath=SuperBar\Addons\Battery\warn
ToggINI=warn.ini
FullPath="SuperBar\Addons\Battery\warn\warn.ini"
[MeasurePower1]
Measure=Plugin
PlugIn=PlugIns\PowerPlugin.dll
PowerState=ACLINE
Substitute=".00000":"","0":"Using battery power","1":"Using external power source"
IfAboveValue=0
IfAboveAction=!Execute [!ShowMeter ACOn][!RainmeterDeActivateConfig #TogglePath# #ToggINI#][!Update]
IfBelowValue=1
IfBelowAction=!Execute [!HideMeter ACOn][!RainmeterActivateConfig #TogglePath# #ToggINI#][!Update]
[MeasurePower3]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=PERCENT
Substitute=".00000":""
IfAboveValue=50%
IfAboveAction=!Execute [!Hide #TogglePath# #ToggINI#][!Update]
IfBelowValue=30
IfBelowAction=!Execute [!Show #TogglePath# #ToggINI#][!Update]
DynamicVariables=1