Recommended Posts

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

@ 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

^^ 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

^^ 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

  • 1 month later...
  • 6 months later...

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

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

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

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:

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

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
  • 4 months later...
  • 2 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.