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.
  • Posts

    • I totally disagree. Very little good comes out of governments all around the world manipulating everything they can and usually the people are not the benefactors. What you say about being restricted and expensive sounds almost like the arguments against firearms and why banning them will protect people as if making something illegal somehow will prevent the criminals from having and using them. AI being far less mainstream could simply mean the average person will not benefit, but "big brother" and the corporations will benefit, which is almost for sure NOT a good thing.
    • I do apologize to the author Mr. Sen for my rude comment, questioning his knowledge of the subject. It is I whom lacked knowledge of the subject. Sorry!
    • Hello All Have a MSI Pro B650 VC Wifi Rev 1.0 motherboard Ryzen 7 7700X Radeon 7800XT OC 16GB 32GB Teamgroup DDR 5 5600mhz Samsung 990 Pro 1TB Boot NVMe Samsung 990 Pro 2TB Game NVMe Lian Li Lancool Black ARGB 216 Case Seasonic Focus GX 750 Watt Power supply   Wondering today what is best spot to plug in the following items on system for performance and not bottle neck anything if i can help it Creative Pebble Pro USB C or A Speakers, ((Powered by External USB C to C PD Adapter)  Logitech G513 USB Gaming Keyboard Logitech G502X Wired Gaming Mouse Cyberpower UPS USB Cable for UPS Power Management/System shutdown External drives connected occasionally are as follows---WD My Book 8TB (primary backup drive)   Seagate 8TB in External USB 3.0 Enclosure,  Seagate Portable 1TB USB 3.0 drive,   WD My Passport (Blue) 2TB, and WD My Passport (Red) 2TB,    WD Elements 500GB USB 2.0 External (Oldest one, Christmas 2003)       **Do have a 7 Port Powered  USB Hub as well, but when i use that--that leaves only the USB Flash spot for something to directly connect to system if needed.    Rear USB C 2x2 unused right now as moved the Creative speakers off it to USB A port next to it, with a USB C to A Cable, as figured speakers didn't near audio from USB C port and tie up the high speed port**   Front Ports trying to limit use of, so i don't have Front I/O port go bad again, already had it replaced once by Lian Li support all the way from Taiwan over night ((Do get extra nervous at times on things,  so i might just be extra nervous for nothing lol))
    • "connect with audiences" is the most obvious corporate speak you can think of. I only bought Need for Speed from EA because it was the only racing game with cops in existence and I dig that. Now that they killed off NFS franchise, I have nothing to spend money on. EA is officially dead for me, just like Ubisoft which I've been boycotting for some 20 years now...
  • Recent Achievements

    • Week One Done
      Jeroen Wilms earned a badge
      Week One Done
    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      494
    2. 2
      +Edouard
      202
    3. 3
      PsYcHoKiLLa
      127
    4. 4
      Steven P.
      82
    5. 5
      ATLien_0
      79
  • Tell a friend

    Love Neowin? Tell a friend!