The problem is that no matter which button I press, the output index is always "6".

How can the separate "buttons" be identified and used?

Am I wrong somewhere in the code? Is it a bug? Am i stupid (most common answer in my problems )?

(Notice the comments in the code and delete what not needed)

Code: Select all

```
[Rainmeter]
Update=1000
@Includeglobals=#@#global_variables.inc
MouseScrollDownAction=[!CommandMeasure "MeasureWin7Audio" "ChangeVolume -5"][!Update]
MouseScrollUpAction=[!CommandMeasure "MeasureWin7Audio" "ChangeVolume +5"][!Update]
[StringStyle]
FontColor=#GlobalTextColor#
FontFace=#GlobalFont#
FontSize=25
StringEffect=NONE
StringStyle=bold
StringAlign=LEFT
AntiAlias=1
Solid=1
[MeasureWin7Audio]
Measure=Plugin
Plugin=Plugins\Win7AudioPlugin.dll
[PercentageCalc]
Measure=Calc
Formula=(MeasureWin7Audio+1-1)
[VolumeCalc]
Measure=Calc
Formula=MeasureWin7Audio/100
;===============================
;ignore these next 3 meters for the sake of the test. maybe delete them
[MeterTextvolume]
Meter=String
MeterStyle=StringStyle
MeasureName=PercentageCalc
StringAlign=center
X=125
Y=103
Text="%1"
[volumeRing]
Meter=ROUNDLINE
X=0
Y=0
H=250
W=250
LineLength=60
LineStart=40
StartAngle=-4.712
RotationAngle=6.283
AntiAlias=1
LineColor=#GlobalBackgroundColor#
Solid=1
[volumeMeter]
Meter=ROUNDLINE
MeasureName=VolumeCalc
X=0
Y=0
H=250
W=250
LineLength=60
LineStart=40
StartAngle=-4.712
AntiAlias=1
LineColor=#GlobalSkinColor#
Solid=1
;ignore ends
;when mouse hovers over this circle,
;the 6 options become available
[MenuRing]
Meter=ROUNDLINE
Group=Ring
X=0
Y=0
H=250
W=250
LineLength=105
LineStart=60
StartAngle=0
RotationAngle=100
AntiAlias=1
LineColor=255, 255,255, 5
Solid=1
MouseOverAction=[!ShowMeterGroup SoundDevice][!Redraw]
MouseLeaveAction=[!HideMeterGroup SoundDevice][!Redraw]
;these meters need to be clicked and change the output index acordingly
[SoundDevice1]
Meter=ROUNDLINE
Group=SoundDevice
X=0
Y=0
H=250
W=250
LineLength=100
LineStart=60
StartAngle=(240*(PI/180))
RotationAngle=(60*(PI/180))
AntiAlias=1
LineColor=255, 255,255, 30
Solid=1
Hidden=1
leftmouseupaction=[!CommandMeasure "MeasureWin7Audio" "SetOutPutIndex 1"][!HideMeterGroup SoundDevice][!Redraw]
[SoundDevice2]
Meter=ROUNDLINE
Group=SoundDevice
X=0
Y=0
H=250
W=250
LineLength=100
LineStart=60
StartAngle=(300*(PI/180))
RotationAngle=(60*(PI/180))
AntiAlias=1
LineColor=255, 255,255, 20
Solid=1
Hidden=1
leftmouseupaction=[!CommandMeasure "MeasureWin7Audio" "SetOutPutIndex 2"][!HideMeterGroup SoundDevice][!Redraw]
[SoundDevice3]
Meter=ROUNDLINE
Group=SoundDevice
X=0
Y=0
H=250
W=250
LineLength=100
LineStart=60
StartAngle=(0*(PI/180))
RotationAngle=(60*(PI/180))
AntiAlias=1
LineColor=255, 255,255, 30
Solid=1
Hidden=1
leftmouseupaction=[!CommandMeasure "MeasureWin7Audio" "SetOutPutIndex 3"][!HideMeterGroup SoundDevice][!Redraw]
[SoundDevice4]
Meter=ROUNDLINE
Group=SoundDevice
X=0
Y=0
H=250
W=250
LineLength=100
LineStart=60
StartAngle=(60*(PI/180))
RotationAngle=(60*(PI/180))
AntiAlias=1
LineColor=255, 255,255, 20
Solid=1
Hidden=1
leftmouseupaction=[!CommandMeasure "MeasureWin7Audio" "SetOutPutIndex 4"][!HideMeterGroup SoundDevice][!Redraw]
[SoundDevice5]
Meter=ROUNDLINE
Group=SoundDevice
X=0
Y=0
H=250
W=250
LineLength=100
LineStart=60
StartAngle=(120*(PI/180))
RotationAngle=(60*(PI/180))
AntiAlias=1
LineColor=255, 255,255, 30
Solid=1
Hidden=1
leftmouseupaction=[!CommandMeasure "MeasureWin7Audio" "SetOutPutIndex 5"][!HideMeterGroup SoundDevice][!Redraw]
[SoundDevice6]
Meter=ROUNDLINE
Group=SoundDevice
X=0
Y=0
H=250
W=250
LineLength=100
LineStart=60
StartAngle=(180*(PI/180))
RotationAngle=(60*(PI/180))
AntiAlias=1
LineColor=255, 255,255, 20
Solid=1
Hidden=1
leftmouseupaction=[!CommandMeasure "MeasureWin7Audio" "SetOutPutIndex 6"][!HideMeterGroup SoundDevice][!Redraw]
```