Sign in to follow this  
Followers 0
Pegus

WMP - Global Shortcut Keys?

22 posts in this topic

Does anyone know how to get Global Shortcut Keys for Windows Media Player 10, like they exist in Winamp? I find it annoying having to use the mouse to play/pause etc...

Share this post


Link to post
Share on other sites

I'm not sure.

You could buy a keyboard with media buttons or maybe there is an app or plugin somewhere that would remap the keys to those functions.

Share this post


Link to post
Share on other sites

Play / Pause - Ctrl+P

Stop - Ctrl+S

Previous - Ctrl+B

Next - Ctrl+F

Rewind - Ctrl+Shift+B

Fast Forward - Ctrl+Shift+F

Shuffle - Ctrl+H

Repeat - Ctrl+T

Volume Up - F10

Volume Down - F9

Volume Mute - F8

Share this post


Link to post
Share on other sites

Thanks, found those keys. But I was more after global keys, which would work even when WMP is not on focus?

Share this post


Link to post
Share on other sites

I've created a little program that should do the trick. :)

With this program you can use the Media Keys without a Media Keyboard.

It runs hidden in the background, you can close it with Task Manager.

System Requirements: Windows NT/2000/XP.

Hotkeys:

Launch Media Player - Ctrl+Numpad7

Play / Pause - Ctrl+Numpad8

Stop - Ctrl+Numpad5

Previous - Ctrl+Numpad4

Next - Ctrl+Numpad6

Volume Up - Ctrl+Numpad+

Volume Down - Ctrl+Numpad-

Volume Mute - Ctrl+Numpad*

MediaKeys.zip

Share this post


Link to post
Share on other sites

@ request: version without keypad hotkeys :)

Hotkeys:

Launch Media Player - Ctrl+Home

Play / Pause - Ctrl+Up

Stop - Ctrl+Down

Previous - Ctrl+Left

Next - Ctrl+Right

Volume Up - Ctrl+PageUp

Volume Down - Ctrl+PageDown

Volume Mute - Ctrl+Del & Ctrl+End

MediaKeys.zip

Share this post


Link to post
Share on other sites

Sweet dude, it's perfect =)

Share this post


Link to post
Share on other sites

You're welcome,.. greetings from the other side of the world! :D

Share this post


Link to post
Share on other sites

COOL man for u to create a small program....

Btw Herby, can u create a small program that can show what songs I am listening while playing Gunzonline...

Share this post


Link to post
Share on other sites

^^ I've no idea how to do that,.. I'm a tweaker, not a programmer. :)

I've created these programs with AutoHotkey, you can create a script and convert it to an executable.

Here's another version:

MediaMouse

With this program you can control the Media Keys with the mouse (no Media Keyboard required).

It runs hidden in the background, you can close it with Task Manager.

System Requirements: Windows NT/2000/XP.

Hotkeys:

Win + Left Button : Play / Pause

Win + Right Button : Stop

Win + Middle Button (wheel) : Mute / UnMute

Win + Scroll Up : Volume Up

Win + Scroll Down : Volume Down

Win + Forward Button : Next

Win + Back Button : Previous

Created with AutoHotkey (www.autohotkey.com).

[/Herby]

MediaMouse.zip

Share this post


Link to post
Share on other sites

^^ I've no idea how to do that,.. I'm a tweaker, not a programmer. :)

I've created these programs with AutoHotkey, you can create a script and convert it to an executable.

Here's another version:

MediaMouse

With this program you can control the Media Keys with the mouse (no Media Keyboard required).

It runs hidden in the background, you can close it with Task Manager.

System Requirements: Windows NT/2000/XP.

Hotkeys:

Win + Left Button : Play / Pause

Win + Right Button : Stop

Win + Middle Button (wheel) : Mute / UnMute

Win + Scroll Up : Volume Up

Win + Scroll Down : Volume Down

Win + Forward Button : Next

Win + Back Button : Previous

Created with AutoHotkey (www.autohotkey.com).

[/Herby]

Haha, i thought u are a programmer....

Anyway thx for the recomendation on the software to create hotkey.... ^^v

Share this post


Link to post
Share on other sites

Awesome. I'm just starting to use AutoHotKey. It's a very useful, little program. A new version was just released on June 17.

Herby, I like your interactive avatar.

Share this post


Link to post
Share on other sites

It's a great little app, I use it alot to automate tasks, they update it frequently (bug fixes & new commands).

About the avatar: I like the way it creates a new snowflake everytime it loads. :)

Share this post


Link to post
Share on other sites

Hi, this is great stuff, thanks for that.

But I have one question here. I used to use Crtl+Pg Up and Crtl+Pg Down for moving between the tabs in Firefox and between the worksheets in Excel, etc... If I run this feature, it takes those shortcuts for volume control. Could you advise please how to change slightly your utility that the shortcuts would be exact the same as a default option in Winamp. I tried to find out how to create my own AutoHotKey utility, but cannot figure it out :unsure:

If it wouldn't be for you big deal :rolleyes: I have a suggestion for another combination:

  • Win + Home: Play/Pause
  • Win + End: Stop
  • Win + Delete: Mute/UnMute
  • Win + Up: Volume Up
  • Win + Down: Volume Down
  • Win + Right : Next
  • Win + Left: Previous

EDIT:

and if I can be so dare ;) I would have some suggestions for basic Roll Wheel Mouse:

  • Win + Left Button : Previous
  • Win + Right Button : Next
  • Win + Middle Button (wheel) : Play / Pause
  • Win + Scroll Up : Volume Up
  • Win + Scroll Down : Volume Down

Edited by misho421

Share this post


Link to post
Share on other sites

Ok, I finally made a little script for Windows Media Player to have control using WIN key. Everything is working fine but the volume control. If I use F9, F10 or F8 within the WMP, that controls the volume all right.

#Home::
IfWinNotExist ahk_class WMPlayerApp
	return
ControlSend, ahk_parent, ^p ; Play or pause a file
return

#Right::
IfWinNotExist ahk_class WMPlayerApp
	return
ControlSend, ahk_parent, ^f; Play next item
return

#Left::
IfWinNotExist ahk_class WMPlayerApp
	return
ControlSend, ahk_parent, ^b; Play previous item
return

#Up::
IfWinNotExist ahk_class WMPlayerApp
	return
ControlSend, ahk_parent, F10; Increase volume
return

#Down::
IfWinNotExist ahk_class WMPlayerApp
	return
ControlSend, ahk_parent, F9; Decrease volume
return

#Delete::
IfWinNotExist ahk_class WMPlayerApp
	return
ControlSend, ahk_parent, F8; Mute volume
return

#End::
IfWinNotExist ahk_class WMPlayerApp
	return
ControlSend, ahk_parent, ^s; Stop playback
return

Any idea what am I doing wrong? I was wondering if I can control volume not within the WMP but controlling the Volume Control in Windows. I can't figure out what is a code for that. It would be enough if I'm able to increase/decrease WAVE column.

And yeah Herby, how can I make EXE which will be running only in processes, but not in task tray? I know I can hide it there, however, I would like to have it ran in processes only.

Cheers

Share this post


Link to post
Share on other sites

Sorry for the late reply.

Wrap the function keys like this: {F9} {F10} :)

ControlSend, ahk_parent, {F10}

For changing the wave volume you can use SoundSetWaveVolume.

For changing various volume settings you can use SoundSet.

Add #NoTrayIcon to disable the Tray icon (see the script below).

+ If you are running Windows 2000 / XP / Vista, you can use MediaKeys.

They also work if Windows Media Player is minimized:

#NoEnv
#NoTrayIcon
#KeyHistory 0

#Home::
SendInput, {Blind}{Media_Play_Pause}; Play or pause a file
Return

#Right::
SendInput, {Blind}{Media_Next}; Play next item
Return

#Left::
SendInput, {Blind}{Media_Prev}; Play previous item
Return

#Up::
SoundSetWaveVolume, +10; Increase wave volume 10%
Return

#Down::
SoundSetWaveVolume, -10; Decrease wave volume 10%
Return

#Delete::
SendInput, {Blind}{Volume_Mute}; Mute volume
Return

#End::
SendInput, {Blind}{Media_Stop}; Stop playback
Return

Cheers,

Herby

Share this post


Link to post
Share on other sites

Hi, thanx for reply.

the script I made is working, however I'm experiencing little troubles with it. Sometimes it's not responding to sent keystrokes. When I switch active window to the WMP and then back to another widow, it's working again. I have no clue what causes this, but it's not that big deal ;)

I've tried to compile an EXE from the script u posted (MediaKeys). I can't run it for some reason, I'm getting below error message. I tried to change some commands within the script, but I wasn't successful.

mediakeys2vs.jpg

Complicated troubleshooting of Mediakeys is not necessary as I'm happy enough with the first script which is running.

Cheers :yes:

Share this post


Link to post
Share on other sites

You can try it with {Blind} before the keys:

#NoEnv

#NoTrayIcon

#KeyHistory 0

#Home::

IfWinNotExist ahk_class WMPlayerApp

return

ControlSend, ahk_parent, {Blind}^p ; Play or pause a file

return

#Right::

IfWinNotExist ahk_class WMPlayerApp

return

ControlSend, ahk_parent, {Blind}^f ; Play next item

return

#Left::

IfWinNotExist ahk_class WMPlayerApp

return

ControlSend, ahk_parent, {Blind}^b ; Play previous item

return

#Up::

IfWinNotExist ahk_class WMPlayerApp

return

ControlSend, ahk_parent, {Blind}{F10} ; Increase volume

return

#Down::

IfWinNotExist ahk_class WMPlayerApp

return

ControlSend, ahk_parent, {Blind}{F9} ; Decrease volume

return

#Delete::

IfWinNotExist ahk_class WMPlayerApp

return

ControlSend, ahk_parent, {Blind}{F8} ; Mute volume

return

#End::

IfWinNotExist ahk_class WMPlayerApp

return

ControlSend, ahk_parent, {Blind}^s ; Stop playback

return

Here's the fixed script with the MediaKeys:
#NoEnv

#NoTrayIcon

#KeyHistory 0

#Home::

SendInput, {Blind}{Media_Play_Pause} ; Play or pause a file

Return

#Right::

SendInput, {Blind}{Media_Next} ; Play next item

Return

#Left::

SendInput, {Blind}{Media_Prev} ; Play previous item

Return

#Up::

SoundSetWaveVolume, +10 ; Increase volume

Return

#Down::

SoundSetWaveVolume, -10 ; Decrease volume

Return

#Delete::

SendInput, {Blind}{Volume_Mute} ; Mute volume

Return

#End::

SendInput, {Blind}{Media_Stop} ; Stop playback

Return

Edit: When I wrap the script in a Code Tag, the spaces before the ; are gone. :wacko:

Edited by Herby

Share this post


Link to post
Share on other sites

Here's a improved version of MediaMouse (the script is included in the zip file).

This program lets you control the Media Keys with the mouse (no Media Keyboard required).

It runs hidden in the background, you can close it with Task Manager.

It displays the volume level when you change it (tooltip).

System Requirements: Windows NT/2000/XP.

Hotkeys:

Win + Left Button : Play/Pause

Win + Right Button : Stop

Win + Middle Button (wheel) : Mute/UnMute

Win + Scroll Up/Down : Volume Up/Down

Win + Forward Button : Next

Win + Back Button : Previous

Shift + Win + Scroll Up/Down : Wave Volume Up/Down

Ctrl + Win + Scroll Up/Down : Bass Level Up/Down

Alt + Win + Scroll Up/Down : Treble Level Up/Down

MediaMouse.zip

Edited by Herby

Share this post


Link to post
Share on other sites

Thanks so much for this lovely script. You are the man!

Share this post


Link to post
Share on other sites

this is a sweet little application...thanks :)

that would be grate a shortcut to close WMP

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.