just started using Rainmeter, for self training purpose, wanna write a simple skin that change system volume with mouse wheel scrolling; it is actually working.
My problem arise trying to replace the volume value with the text "Mute" when the volume is zero or muted with the toggle...
Below the solutions was trying but neither one work... is there any good man that wanna help me please?
I do apologize in advance if there's already an answer to this question somewhere, but I didn't find it...
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
[MeasureVolume]
Measure=Plugin
Plugin=Win7AudioPlugin
;Solution 1
;IfAboveValue=1
;IfAboveAction= [!SetOption VolumeLevel Text "[MeasureVolume:]%"][!Redraw]
;IfBelowValue=0
;IfBelowAction=[!SetOption VolumeLevel Text "Mute"][!Redraw]
;Solution 2
;IfCondition=MeasureVolume < 1
;IfTrueAction=[!SetOption VolumeLevel Text "Mute"]
;IfCondition2=MeasureVolume >= 1
;IfTrueAction2=[!SetOption VolumeLevel Text "[MeasureVolume:]%"]
;OnUpdateAction=[!UpdateMeter VolumeLevel][!Redraw]
[VolumeLevel]
Meter= String
MeasureName=MeasureVolume
X=30
Y=15
W=60
H=35
FontColor=1,178,87,255
FontFace=Roboto
FontSize=13
StringAlign=Center
Text =[MeasureVolume:]%
MouseScrollUpAction=[!CommandMeasure MeasureVolume "ChangeVolume +1"][!Update]
MouseScrollDownAction=[!CommandMeasure MeasureVolume "ChangeVolume -1"][!Update]
MiddleMouseUpAction=[!CommandMeasure MeasureVolume "ToggleMute"][!Update]
AntiAlias=1
DynamicVariables=1