Code: Select all
[MeasureAC]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=ACLINE
IfEqualValue=0
IfEqualAction=!RainmeterColorMeter MeterPowerBar #ColorAC#
IfAboveValue=0
IfAboveAction=!RainmeterColorMeter MeterPowerBar #ColorBattery#
Code: Select all
[MeasureAC]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=ACLINE
IfEqualValue=0
IfEqualAction=!RainmeterUpdateVariable PowerBarColor #ColorAC#
IfAboveValue=0
IfAboveAction=!RainmeterUpdateVariable PowerBarColor #ColorBattery#
Anyway - I think having different meter colors based on different conditions is very common (battery levels, wireless signal levels, CPU utilization, etc). This would make the configs more efficient for those cases, both in terms of coding efficiency and probably execution.