MediaKey measure


Measure=MediaKey sends various keystrokes found on multimedia keyboards. It works with Spotify, Zune, foobar, and Windows Media Player. The measure is controlled by the !CommandMeasure bang.

Note: MediaKey was previously a plugin measure.

In many existing skins you might see the syntax:

[MeasureMedia]
Measure=Plugin
Plugin=MediaKey
or
Plugin=MediaKey.dll
or
Plugin=Plugins\MediaKey.dll

MediaKey still works with those forms, and changing existing skins to the new Measure=MediaKey syntax is entirely optional. However, new skins created going forward should use the correct syntax for accuracy and clarity. MediaKey is a measure, and not a plugin.

[MeasureMedia]
Measure=MediaKey

Options

General measure options
All general measure options are valid.

Bangs

To control keystrokes on multimedia keyboards, use the !CommandMeasure bang. In the examples below MeasureMediaKey is the section name for the MediaKey measure. Your section name may differ.

!CommandMeasure "MeasureMediaKey" "NextTrack"
Moves to the next track in the list.
!CommandMeasure "MeasureMediaKey" "PrevTrack"
Moves to the previous track in the list.
!CommandMeasure "MeasureMediaKey" "Stop"
Stop playback.
!CommandMeasure "MeasureMediaKey" "PlayPause"
Plays/Pause playback.
!CommandMeasure "MeasureMediaKey" "VolumeMute"
Mutes the sound.
!CommandMeasure "MeasureMediaKey" "VolumeDown"
Decreases volume.
!CommandMeasure "MeasureMediaKey" "VolumeUp"
Increases volume.

Example

[MeasureMediaKey]
Measure=MediaKey

[MeterMute]
Meter=String
SolidColor=0,0,0,255
FontColor=255,255,255,255
Text=Mute
LeftMouseUpAction=!CommandMeasure "MeasureMediaKey" "VolumeMute"