While using the NowPlaying measure with Windows Media Player, if Windows Media Player is closed, the measure commands still work, so the media can be controlled using a Rainmeter skin. However, the media keyboard keys do not work, so the media cannot be controlled with the media keys. I am trying to run
Code: Select all
[!CommandMeasure "measurePlayer" "PlayPause"]
Code: Select all
[measurePlayPauseKey]
Measure=Plugin
Plugin=HotKey
HotKey=a
KeyUpAction=[!Log "key was pressed"][!CommandMeasure "measurePlayer" "PlayPause"]
Code: Select all
[Rainmeter]
Update=50
BackgroundMode=2
SolidColor=0,0,0,1
[Variables]
fontName=Trebuchet MS
textSize=8
colorText=00FF00FF
[measurePlayer]
Measure=NowPlaying
PlayerName=WMP
PlayerPath=C:\Program Files (x86)\Windows Media Player\wmplayer.exe
PlayerType=TITLE
DisableLeadingZero=1
Substitute="":"MUSIC"
[measurePlayPauseKey]
Measure=Plugin
Plugin=HotKey
HotKey=a
KeyUpAction=[!Log "key was pressed"][!CommandMeasure "measurePlayer" "PlayPause"]
ShowAllKeys=0
[styleTitle]
StringAlign=Center
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1
SolidColor=00000001
[styleText]
StringAlign=Left
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
SolidColor=00000001
[meterTitle]
Meter=String
MeterStyle=styleTitle
MeasureName=measurePlayer
X=100
Y=12
W=190
H=18
Text=%1
[meterPlayPause]
Meter=String
MeterStyle=styleText
StringAlign=Center
X=100
Y=20r
W=40
H=30
Text=[play]
LeftMouseUpAction=[!CommandMeasure "measurePlayer" "PlayPause"]
SolidColor=00000001