I'm working on a battery skin that will cycle through four icons depending on the current battery's percentage and I think I have that part of the code set. However, I've been setting up all of my skins to turn from an outlined icon to a colorized version of the same icon on mouseover. Is it possible to set something up like that given that my battery skin has variable image name values to be automatically set based on my battery percent?
Here is how I have the Battery Measure set up
Code: Select all
[MeasureBatteryPercent]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent
IfCondition=(MeasureBatteryPercent <= 25)
IfTrueAction=[!SetOption MeterBattery "ImageName" "#@#Icons\low battery outline.png"][!Redraw]
IfCondition2=(MeasureBatteryPercent >= 26) && (MeasureBatteryPercent <=65)
IfTrueAction2=[!SetOption MeterBackground "ImageName" "#@#Images\med battery outline.png"][!Redraw]
IfCondition3=(MeasureBatteryPercent >=66) && (MeasureBatteryPercent <= 89)
IfTrueAction3=[!SetOption MeterBackground "ImageName" "#@#Icons\high battery outline.png"][!Redraw]
IfCondition4=(MeasureBatteryPercent >= 90)
IfTrueAction4=[!SetOption MeterBackground "ImageName" "#@#Icons\full battery outline.png"][!Redraw]
Code: Select all
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageName "#@#icons\full battery color.png][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" ImageName "#@#icons\full battery outline.png][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
Secondarily, is Rainmeter capable of measuring the time left on my laptop's current charge? I'm trying to add a tooltip that will display current charge percentage and time left on the charge. I've been able to figure out the charge percent tooltip, but I can't figure out how to get it to display life left. I found the power plugin tutorial on the rainmeter main website and have coded this measure
Code: Select all
[MeasureBatteryTime]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Lifeime
Format="%#H hr %M min remaining"
Code: Select all
ToolTipType=1
ToolTipTitle="Battery"
ToolTipText="[MeasureBatteryPercent]% #CRLF#[MeasureBatteryTime]%1"