I've built myself a simple audio volume display using:
Code: Select all
[MeasureAudioOutput]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=10
RMSGain=10
IfCondition=MeasureAudioOutput > 50
IfTrueAction=[!SetOption MeterAudioOutput] BarColor 255,0,0,255]
IfFalseAction=[!SetOption MeterAudioOutput] BarColor 255,255,255,255]
DynamicVariables=1
[MeterAudioOutput]
Meter=BAR
MeasureName=MeasureAudioOutput
X=0
Y=0
W=25
H=200
I've tried changing the IfCondition to:
IfCondition=(([MeasureAudioOutput]/[MeasureAudioOutput:MaxValue]) * 100) > 50 but to no avail.
I've also tried the following code from one of my previous fan speed checks to warn me if a fan fell below minimum speeds:
Code: Select all
IfCondition=MeasureAudioOutput > 20
IfTrueAction=[!SetOption MeterAudioOutput BarColor 255,0,0,255]
IfCondition2=MeasureAudioOutput < 20
IfTrueAction2=[!SetOption MeterAudioOutput BarColor #BarColor#]
OnUpdateAction=[!UpdateMeter MeterAudioOutput][!Redraw]
My String output is displaying the value going over the level required to trigger.
Code: Select all
[MeterAudioLevel]
Meter=STRING
MeterStyle=styleTitle
MeasureName=MeasureAudioOutput
X=0
Y=0
W=290
H=14
Text=LEVEL %1%
Percentual=1
https://forum.rainmeter.net/viewtopic.php?f=5&t=25508