Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've got an ASUS K50AF series notebook with Windows 7 Home Premium x64. I'm using VLC, and I want to use media keys (play, pause, rewind, forward, stop) with it. Currently, it's associated with Windows Media Center.

My keyboard

I've tried MK2MP. Unfortunately, it didn't fix my problem, and crashed after restarting VLC.

Run time error 31
at line 559

Now, I can't even start MK2MP. Any ideas?


Update: I've disabled Media Center and Media Player. HIP now recognizes media keys, but the keys still don't do anything. :/

Update 2: It seems that when I try capturing that key, all programs (including HIP, Key Mapper and AutoHotkey) thinks I pressed the H key. Huh?

share|improve this question
    
Is there some kind of keyboard control panel by the manufacturer that lets you customize what each key does? –  Sasha Chedygov Feb 1 '11 at 0:05
    
No, I haven't found anything like that. –  nyuszika7h Feb 1 '11 at 12:07
add comment

11 Answers

Before you set the VLC hotkeys, you need to set VLC as your default media player, in control panel, default programs, set your default programs, and choose VLC as default.

The global hotkeys should then work with VLC, you still have to set them in VLC - tools, preferences, hotkeys, double click on the global key you want to set, VLC will prompt you to press the key, and restart VLC afterwards so they become active.

share|improve this answer
add comment

Go to General > Hotkeys in Preferences and try to bind your media keys

share|improve this answer
1  
I've tried that, but VLC won't recgonize them. –  nyuszika7h Jan 24 '11 at 12:05
    
@Nyuszika7H : do the bindings work with any other keys ? –  Shakehar Jan 24 '11 at 12:11
1  
Yes, they work with other keys, but not with media keys (when I press them, Media Center starts if it isn't started). –  nyuszika7h Jan 24 '11 at 12:26
1  
Its obvious that your media keys are bound to media center , find a way to dissociate your keys from media center and it might work –  Shakehar Jan 24 '11 at 12:30
    
Thank you, it helped! ;) –  user398797 Sep 17 '13 at 5:59
add comment

You need to bind your keys in VLC. Other answers are right on this, but were missing a couple details which I am pointing out here.

  1. Start VLC
  2. Click Tools -> Preferences
  3. Click the Hotkeys section near the bottom left.
  4. Find the key you want to bind and double click under the "Global" heading. If you double click anywhere else, you will be binding the wrong keyboard shortcut.
  5. Press your key. VLC should recognize it.
  6. Restart VLC. If you are binding global hotkeys, VLC must be restarted so it can listen for them.

VLC global hotkeys

share|improve this answer
add comment

You could set up macros in Event Ghost to capture the keys and set them up to trigger the actions that you want.

share|improve this answer
    
I can't see where can I add my media keyboard's Play button (or any other key) in this program. –  nyuszika7h Feb 5 '11 at 22:18
    
@Nyuszika7H: I see several Google results report this, try figuring it out... +1 –  Tom Wijsman Feb 6 '11 at 14:22
add comment

You might be able to use this article to disable the multimedia keys in Windows :
Disable windows multimedia key shortcuts.

It counsels deleting entries from the registry key of :
HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\AppKey,
so it is advised to first take some precautions.

To a lesser degree, you might also find this article useful :
How to Disable or Enable Windows Hotkeys in Vista,
although it may not apply to your case.

share|improve this answer
    
I've tried HIP, but unfortunately, it didn't work. :( –  nyuszika7h Feb 1 '11 at 7:56
    
Have you tried the registry method? –  harrymc Feb 1 '11 at 8:12
    
Hmm. .cda files are associated with VLC. So, what next? –  nyuszika7h Feb 3 '11 at 10:44
    
Sorry for being unclear. In my first link I was referring to searching HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\AppKey to maybe find out if the associations for the multimedia keys are defined there. –  harrymc Feb 3 '11 at 11:00
    
I know, I've read that article. I've tried deleting all, but nothing changed. Trying out other solutions. –  nyuszika7h Feb 3 '11 at 11:08
add comment
up vote 1 down vote accepted

It seems that I can't assign media keys to other actions, even though they aren't associated to anything right now. I've removed ATK Media – which came with my laptop –, too. :/ Sending a feedback to VideoLAN, maybe later versions of VLC will be able to capture these keys.

share|improve this answer
    
Did you ever end up figuring this out? I'm in the same situation. –  Max Cantor Oct 3 '11 at 23:26
    
@Max I don't use Windows on my laptop anymore, it runs Arch Linux, and I'm used to the command line, I use cvlc or nvlc usually. Maybe I'll install Windows in VirtualBox in case I need it for something someday. –  nyuszika7h Oct 4 '11 at 16:25
    
I also recommend mpd/mpc as a fine command line music player. (easy to script, too) –  Max Cantor Oct 4 '11 at 16:34
add comment

If you have Microsoft IntelliType installed (it happens automatically for certain keyboards), try un-installing it via "Add or Remove Programs".

Via http://forum.videolan.org/viewtopic.php?f=14&t=79605

share|improve this answer
    
thanks for trying to help, but I'm sure I didn't have it installed (I don't use Windows anymore). –  nyuszika7h Oct 4 '11 at 16:28
add comment

None of the solutions above should work, as the problem is in the ATK Media utility provided by Asus. Instead of emiting keyboard events (like normal media keys), it maps them to specific apps (you can actually change those apps in the registry, see here http://mcbx.netne.net/hacks/asusmmed/index.htm). The order and name of apps that it looks for change depending on version and system, but luckily there's an easier fix to enable the use of generic media key events.

I just came across the solution for this after some time reading a bunch of sites.

  1. Download the rar package from this blog post: http://3mptylab.blogspot.it/2012/09/how-to-make-asus-notebooks-media-keys.html

  2. Stop the current DMedia.exe process.

  3. Go to your ATK Media install folder (normally C:\Program Files (x86)\ASUS\ATK Package\ATK Media) and rename DMedia.exe to DMedia.exe.old (just to be safe).

  4. Put DMedia.exe you'll find in the RAR into the ATK Media dir. Double click it to run it but it gets run at boot anyway.

  5. Check if the media keys work as they should. Grab a beer or watch a movie if it works!

I just tested it in my Asus U30Jc under Win8 Pro 64-bits and works great! This tool actually maps generic keyboard events to the media keys in the integrated keyboard, so they work with any app enabled for this (in some cases like Winamp you might need to enable global keys).

After enabling hotkeys in VLC it should work with no problems, and with any other media program too (Spotify, WMP, Winamp, Xbox Music, etc).

share|improve this answer
    
Nice find, sadly I can't test it as my new laptop doesn't have media keys. –  nyuszika7h Apr 29 at 16:30
add comment

Those of you who have still not found a solution try the following:

  1. Click Tools and select Preferences

  2. From the left hand side select Hotkeys

  3. You will now be prompted to select an action and associate it with a hotkey. Scroll down until you find the action Next and then double-click on it

  4. You should now be prompted to enter your media key for "Next Track"

  5. Click [Apply]

Once you do these five steps try playing a music/video file and testing ALL of your media keys as they should automatically work now.

share|improve this answer
    
On my Logietch MK700 keyboard, this does not work. VLC does not "see" the play/pause/fastforward/rewind buttons when pressed. –  dan_linder Jun 7 '13 at 20:18
add comment

I just had this problem, and it turned out that iTunes advanced setting "enable full keyboard navigation" was checked. unchecked it and the keys worked in VLC again, without having to map them.

share|improve this answer
add comment
  1. Open up the hotkey window in VLC by Tools -> Preferences -> Hotkeys
  2. Double click on the desired action to change
    • If you can set the media button to your desired hotkey.
    • If you cannot, unsetting the hotkey could help. You can do this by clicking Unset. This worked

I also had problems with Windows Mouse & Keyboard Center. Uninstalling it helped use the sway.fm Chrome plugin (more details).

share|improve this answer
    
Thanks, but this is a very old question. –  nyuszika7h Jun 24 at 10:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.