So I'm fairly new to how rainmeter works on the back end and have been doing a lot of reading to try and figure this out myself but I just can't seem to get it doing what I want it to.
I found a very old skin that is a simple battery meter for my xbox controller using the xinput plugin, and I noticed that when the battery drops its levels to the thresholds the image doesn't update, instead I realised that they are actually overlapping each other.
No matter what I've tried seems to get it to work, any help would be super appreciated!
Code: Select all
;~~~[Measure]~~~;
[measureController0Connect]
Measure=Plugin
Plugin=XInput.dll
Channel=Connected
IfCondition=measureController0Connect = 1
IfTrueAction=[!RainmeterShowFade][!Redraw]
IfFalseAction=[!RainmeterHideFade][!Redraw]
[measureController0Battery]
Measure=Plugin
Plugin=XInput.dll
Channel=Battery_Pad
IfCondition=measureController0Battery = 0.33
IfTrueAction=[!ShowMeter mbatlow][!HideMeter mbatmid][!HideMeter mbatfull][!Redraw]
IfCondition2=measureController0Battery = 0.50
IfTrueAction2=[!ShowMeter mbatmid][!HideMeter mbatlow][!HideMeter mbatfull][!Redraw]
IfCondition3=measureController0Battery =0.75
IfTrueAction3=[!ShowMeter mbatfull][!HideMeter mbatlow][!HideMeter mbatmid][!Redraw]
Update=30
;~~~[Meter]~~~;
[mbatfull]
Meter=Image
ImageName=#@#batfull.png
W=45
H=25
[mbatmid]
Meter=Image
ImageName=#@#batmid.png
W=45
H=25
[mbatlow]
Meter=Image
ImageName=#@#batlow.png
W=45
H=25
[mbatempty]
Meter=Image
ImageName=#@#batempty.png
W=45
H=25