Win7Audio plugin
Plugin=Win7AudioPlugin
controls the sound device and volume.
The measure will return different "string" and "number" values.
- String: The name of the current sound device. This will be used when the measure is bound to a String meter, or if the string [SectionVariable] value of the measure is used.
If there is a problem detecting or interacting with the sound device, the following error strings are possible:ERROR - Getting Device Description
ERROR - Getting Property
ERROR - Getting Default Device
- Number: The percentage (0-100) of current volume level. This will be used when the measure is bound to a meter which requires a percentage. This numeric value can also be used in a String meter, by setting the Text option of the meter to the numeric [SectionVariable:] value of the measure.
Options
- General measure options
- All general measure options are valid.
Usage:
[MeasureWin7Audio] |
Bangs
To control the sound device or volume, use the !CommandMeasure bang. In the examples below MeasureWin7Audio
is the section name for the Win7Audio measure. Your section name may differ.
!CommandMeasure "MeasureWin7Audio" "ToggleNext"
- Jump to the first if last device is active.
!CommandMeasure "MeasureWin7Audio" "TogglePrevious"
- Jump to the last if first device is active.
!CommandMeasure "MeasureWin7Audio" "SetOutputIndex index"
-
Set a specific device with
index
. This depends on your system setup and number of output devices. !CommandMeasure "MeasureWin7Audio" "ToggleMute"
- Toggle the mute state.
!CommandMeasure "MeasureWin7Audio" "SetVolume x"
-
Set volume to
x
(between 0 and 100). This disables mute. !CommandMeasure "MeasureWin7Audio" "ChangeVolume x"
-
Change the volume by
x
percent. Use negative numbers to lower volume. This disables mute.
Example
[Rainmeter] |