I've been trying to do some more tweaking on the volume skin, and im trying to get it to have a different color when the volume is at a 100, but the if condition true thing doesnt seem to change the variable. what do i do?
Code: Select all
[Rainmeter]
Update=1
[Metadata]
Author=Ryan
[Variables]
UsedColor=FF8800
FellColor=255,255,255,0
OnCol=0,0,0
@include=#@#Variables.inc
[mVolume]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=AIMP
PlayerType=Volume
[mVolume2]
Measure=Calc
Formula=mVolume
IfCondition=(mVolume = -1)||(mVolume = 0)
IfTrueAction=[!SetOption "Perc" "Text" "X"][!Update]
IfFalseAction=[!SetOption "Perc" "Text" "%1"][!Update]
; IfCondition=(mVolume = -1)
; IfTrueAction=[!SetOption "Text2.Brightness" "Text" "Mute"][!Update]
; IfFalseAction=[!SetOption "Text2.Brightness" "Text" "%1%"][!Update]
[mVolume3]
Measure=Calc
Formula=mVolume
IfCondition=(mVolume = 100)
IfTrueAction=[!SetVariable OnCol "22bb45"]
IfFalseAction=[!SetVariable OnCol "FF8800"]
[MeterVol]
Meter=Roundline
MeasureName=mVolume
X=10
Y=0
W=120
H=120
StartAngle=-4.712
RotationAngle=6.283
LineLength=20
LineColor=#OnCol#
Solid=1
AntiAlias=1
MouseScrollDownAction=[!CommandMeasure "mVolume" "SetVolume -5"][!Update]
MouseScrollUpAction=[!CommandMeasure "mVolume" "SetVolume +5"][!Update]
[MeterEllipse]
Meter=Shape
Shape=Ellipse 70,60,16 | Stroke Color #FellColor#
[Perc]
Meter=String
MeasureName=mVolume
x=70
y=49
StringAlign=Center
FontFace=Century Gothic
FontWeight=500
FontColor=#UsedColor#
Text=%1
FontSize=12
AntiAlias=1
[code]