12

I have Asus M51Sn notebook, running Windows 7 (but also Linux, but this question is just about Windows). As you can see in the following image, it has five completely useless keys at the top of the keyboard. I want to remap such keys to useful things.

enter image description here

In this laptop, I have to use Fn+F5 and Fn+F6 to change the brightness, and Fn+F10, Fn+F11 and Fn+F12 to mute or change the volume. These actions are VERY cumbersome, as they need two hands to be pressed and I need to look at the keyboard to find where is the correct key. What I want is to remap the useless keys at the top (as seen in the previous picture) to change brightness and volume.

As I said, I need a solution for Windows 7 (I've already remapped the keys on my Linux system).

I have installed a program from Asus called ATK Hotkey, which is responsible for showing OSD messages about brightness/volume changes. However, this program is very bad, as it runs completely hidden from the user and has NO configuration at all. Not even configuration files, it has just a few EXE and DLL files, nothing more. It is so bad that the "open browser" key on my keyboard always launch Internet Explorer, even if it is not my default browser. If needed, I will happily uninstall this program if I find something better. (remapping keys to useful actions is much more important than OSD messages)

Things I've already tried

Uninstalling ATK Hotkey

Without ATK Hotkey, I can still change the brightness (as it is probably handled by BIOS), but Fn+F* keys don't change the volume anymore.

SharpKeys 3.0

SharpKeys 3.0 couldn't read any of the special keys on my laptop. My bet is that they aren't actual key presses, but instead ACPI events. Thus, I need a way to map some ACPI events to useful actions.

AutoHotkey

I've tried installing AutoHotkey and running a script to find scancode of a key. No luck, these special keys on my laptop don't appear to generate scancode or keypress events. (got this idea from a StackOverflow answer, too bad it didn't work for me)


Update, 4 years later: In 2014, that notebook broke and I stopped using it. In addition, I don't run Windows on my current notebook.

2
  • possible duplicate of How to remap special keys on my keyboard
    – user8228
    Commented Jan 2, 2012 at 5:58
  • @Revolter: related, but not duplicate. A standard keyboard will send keypresses for those extra keys. This Asus laptop, on the other hand, seems to send ACPI events that can't be easily customized. Commented Jan 8, 2012 at 23:13

3 Answers 3

7

From the The ASUS Info Booth topic (at Notebook Review forum), I found a link called Customize ASUS hotkeys. That link sent me to Asus notebook keys, v1.3 topic on that forum:

Asus notebook keys, v1.3

This program gives you ability to define own actions for additional buttons of Asus notebooks.

That's all I needed! What's more: the source-code is included! (too bad I don't have Visual Studio).

However, the program from the first post has a silly GUI mistake, which was later fixed by another user and then released as AsusNbKeysCtr-1.3fix.zip (but without source-code).

Using that program (the fixed version), I was able to remap the extra laptop keys to Volume Up, Volume Down and Volume Mute keystrokes, which are directly recognized by Windows. That's great, and solves half of my problem!

The other half, however, involves changing the monitor brightness. Unfortunately, there is no easy solution for that, and I need a command-line program to increase and decrease the brightness.

I've found two command-line applications that allow me to set the brightness to some value, but they do not allow me to increase or decrease it. The first one is Brightener, written by Ciaran user. The second one is Display Brightness Vista Gadget from edgylogic.com. Since they don't solve my issue, I still need a program to change the brightness.

5

Probably a little bit late to answer, but after following link after link I found a version of DMedia that replaces the normal one and dispatches general keyboard key events for media playback. I know the question was about other buttons, but the fact that the media keys launched a random app each time (and that in Windows 8 it brings WMP to the foreground) bothered me.

The app can be found in binary form here (there's a source in bitbucket should you see it) http://3mptylab.blogspot.it/2012/09/how-to-make-asus-notebooks-media-keys.html

Just download the rar file, stop the DMedia.exe process, go to your ATK Media installation folder, rename the original DMedia.exe just in case and then put the downloaded DMedia.exe in the same folder. Execute it to make it work (and normally it should launch at boot).

It's based on this code, which worked only for one app. http://zaak404.wordpress.com/2011/05/09/controlling-foobar2000-with-asus-g73-media-keys/

Working great on my Asus U30Jc under Windows 8 64-bit, whereas all other methods failed to work properly.

1
  • 1
    It's been 5 years and your answer is still useful and the only one that actually helped me. Working like a charm on 7yo notebook with win10 (which is not supported by asus).
    – ghost
    Commented Jan 9, 2017 at 16:36
1

Saw your comment on another answer I left for setting brightness so I modded the app I wrote for that question a bit and came up with a tray app which you can use to control brightness (same restrictions apply as per the comments in the other thread).

This version of the app is pretty poor at the moment. Some seriously bad code at the moment but it seems to work for me anyway. Currently the hotkey is hardcoded as CTRL + ALT + UP / DOWN but as you'll see there's a dialog available to set up the hotkeys yourself. Doesn't work at the moment but I'll get around to fixing it at some point.

Download

When I do get around to fixing the settings, I'll clean the code up a little and post it here too.

4
  • Thank you! But hey, no need for fancy dialogs! If you can make it so I can call it as brightener +1 for increasing (or -1 for decreasing), that's enough! A simple command-line interface is perfect for my need (because I already have other program to map a key to a command). Commented Jan 25, 2011 at 1:05
  • Design wise it wouldn't work too well. Incrementing by 1% at a time will mean that you'll open and close a console app 100 times to go from one end of the spectrum to another. A tray app with hotkeys is probably the best way to do this. Unless you can argue against it.
    – frusDev
    Commented Jan 25, 2011 at 21:32
  • Well, since I'm used to Unix/Linux background, console apps are quite natural for me. However, on Windows they tend to popup the command prompt window, as you mentioned. So... maybe the GUI program, when called with some command-line parameters, could change the brightness and quit, without even opening any window. Well, that's just an idea. Gotta try your program later, when I reboot back into Windows. Commented Jan 31, 2011 at 4:14
  • Okay, I've finally tested it. It works, thank you! But it has only 4 brightness levels (which, on my monitor, are "dark" and 3 levels of "very bright"), while I know my monitor has around 10~15 brightness levels (and I usually toggle between the 3 lowest levels). So... it would be better if it didn't skip levels when changing the brightness. Commented Feb 13, 2011 at 0:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .