Couple of things.
You are mixing up the NowPlaying and Win7Audio plugins, as PlayerName and PlayerType are not options for Win7Audio. You don't need them.
You also don't need two Win7Audio measures. Win7Audio returns the name of the output device (like "speakers") when used in a meter or measure requiring text, and a percentage number (like 50) when using in a meter or measure requiring a number.
So when MeasureWin7Audio is used in the bar meter as MeasureName=MeasureWin7Audio, it will give the current volume percentage to the bar. That part is working fine.
Now for the "knob" image. The issue there is that you are using the value of MeasureWin7Audio in a dynamic way to change the Y value of the meter. That is the right idea, but the problem is that when a measure has both a string and number value, it returns the string value ("speakers" in this case) when used in square brackets and DynamicVariables=1.
So we need a way to get the number value of the measure to use in the Y option of the meter. To do that, we set up a simple Calc measure that just uses the value of MeasureWin7Audio as the Formula=. Now that measure has only a number value we can use in your "knob" meter. P.S. Don't forget to use DynamicVariables=1 if you want the "current" value of a measure to be used in a formula.
Code: Select all
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin
[MeasureKnobPos]
Measure=Calc
Formula=MeasureWin7Audio
[MeterBar]
meter=bar
measurename=MeasureWin7Audio
BarOrientation=Vertical
flip=0
x=44
y=55
W=5
H=317
BarColor=F7931E
[MeterPosition]
meter=image
SolidColor=255,0,0,255
W=10
H=10
X=38
y=(372-317*(([MeasureKnobPos]/100)))
DynamicVariables=1
One additional hint. You can open the "About" dialog from the Rainmeter notification area icon, and click on "Skins" to watch the current value of all measures and variables while your skin is running. That can be a big help in spotting a problem.
================================
There is an alternative way to solve this, that I would recommend. We have add a new
Section Variables feature that expands how you can use [Measures] and [Meters] in formulas. If you use the new capability for measures:
[MeasureName:] will return the current value of the measure as a number with up to 10 places of decimal precision. In addition, some modifiers can be added to scale the number, show it as a percentage, and define the number of decimal places to use.
Then you can avoid the need for an extra Calc measure. You can in effect "force" the dynamic [Measure] to use the number value instead of the string. Just do this:
Code: Select all
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin
[MeterBar]
meter=bar
measurename=MeasureWin7Audio
BarOrientation=Vertical
flip=0
x=44
y=55
W=5
H=317
BarColor=F7931E
[MeterPosition]
meter=image
SolidColor=255,0,0,255
W=10
H=10
X=38
y=(372-317*(([MeasureWin7Audio:]/100)))
DynamicVariables=1