I am making a skin to control music player (WMP) using Nowplaying plugin. And I encountered a problem. When Nowplaying plugin opens WMP by !CommandMeasure, WMP is always opened with normal window in top position. Because I don't need WMP window, I must click window control button of WMP to minimize it each time. It is not a big problem but a bit bothering for me.
So, I think stupidly that I shall open WMP as minimized before Nowplaying plugin opens and handshakes with it, using a bang as "[cmd /c "start /B /MIN wmplayer.exe"]". But no luck... Nowplaying plugin brings WMP out from task bar as a topmost normal window. I now understand that this behavior is normal as documented in Rainmeter Docs.
How can I open music palyer(WMP) minimized in task bar, when nowplaying plugin opens the player?
Sample Code:
Code: Select all
[Rainmeter]
Update=1000
OnCloseAction=[!CommandMeasure mStatus ClosePlayer]
[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=WMP
PlayerType=Title
DisableLeadingZero=1
[mStatus]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Status
IfCondition=mStatus=0
IfTrueAction=[!CommandMeasure mStatus OpenPlayer]
;IfTrueAction=[cmd /c "start /B /MIN wmplayer.exe"]
;IfTrueAction=[cmd /c "start /B /MIN wmplayer.exe"][!CommandMeasure mStatus OpenPlayer]
[Background]
Meter=Image
W=188
H=96
SolidColor=63,63,63
[PlayPause]
Meter=Image
X=24
Y=24
W=48
H=48
SolidColor=96,96,96
LeftMouseUpAction=[!CommandMeasure mPlayer "PlayPause"]
DynamicVariables=1
ToolTipText="Toggle play/pause"