Interception of multimedia keys on the ASUS laptop

I have an ASUS laptop (F50SF) and I played in C ++ trying to intercept the multimedia keys (next track, previous track, play / pause, etc.), but I cannot figure out exactly how to do this. I tried GetAsyncKeyState(VK_MEDIA_NEXT_TRACK) , but to no avail.

I know that this is possible (and that the keys work in the first place), because these keys work fine in Windows Media Player.

Any ideas?

+4
source share
4 answers

The problem is that the ATK Media utility provided by Asus is completely blocked and, instead of emitting keyboard events (such as regular media keys), displays them in certain applications. The order and name of the applications that he is looking for varies depending on the version and system, but, fortunately, there is a fix!

I just found a solution for this after a while, reading a bunch of sites.

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

  • Stop the current DMedia.exe process.

  • Go to the installation folder of ATK Media (usually C: \ Program Files (x86) \ ASUS \ ATK Package \ ATK Media) and rename DMedia.exe to DMedia.exe.old (to be safe).

  • Place DMedia.exe in the RAR in the ATK Media directory. Double-click it to start it, but it still starts at boot.

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

I just tested it in my Asus U30Jc under Win8 Pro 64-bit and it works great! This tool actually compares common keyboard events with media keys on the built-in keyboard, so they work with any application included for this (in some cases, for example, Winamp, you may need to enable global keys).

+11
source

I found this gem in autohotkey http://www.autohotkey.com/forum/viewtopic.php?p=302923 it helped me to display network, mail, P1 and P2 buttons on my laptop that would otherwise require software media center for software tools for their reassignment. it's not C ++, but it can help you get in the right direction by looking at the scan codes!

+2
source

Some laptops (for example, my Asus M51Sn) do not generate keystrokes for special (multimedia) keys. I believe that these keys generate ACPI events. I have no idea how to catch them.: - \

If you want to see what I have already tested, check out my question at SuperUser .

+1
source

Google code has a project that disables (intercepts) the keystrokes of certain keys.

It is written in C, but you can learn how to do it if you go through the code.

Killkeys

0
source

All Articles