I've looked at alot of the scripts here and I think there isn't enough about WMP.
Anyways. Just a lil script I made up. I know it isn't very technical or anything but it does what i want it to:
Plays a random song if you press Numpad plus key. If WMP isn't open it will open, play then minimise. If its open it will play the next song. To play a random one you may need to turn Shuffle on CTRL - H.
It probably isn't stable but atm it does what I want it to. Any suggestions would be nice.
Code:
NumpadAdd::
IfWinExist, Windows Media Player
{
WinActivate
send, {ALT}PP
send, {ALT}PN
sleep, 1000
WinMinimize, Windows Media Player
}
else
{
Run, C:\Program Files\Windows Media Player\wmplayer.exe
WinActivate
sleep, 1000
Send, {ALT}PP
send, {ALT}PN
sleep, 2000
WinMinimize, Windows Media Player
}
return
BTW - I seem to be having trouble sending control virtual keys to it like:
send {CTRL}H
It dosn't seem to work. Any ideas?