Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Mapping a peculiar keyboard key to start program

04 Jan 2011   #1

Win 7 Home Premium (OEM) - Install date: 02-2010
Mapping a peculiar keyboard key to start program

My laptop has a button which used to trigger software (Acer PowerSmart Manager) which was supposed to reduce power consumption through undisclosed methods. The program was an irritation since it overrode screen brightness settings (actually making the screen brighter than I wanted it) and could not be customised so I uninstalled it. I would like to reasign the button to opening a program called GameBooster which I can use to close down many programs at once and restart them all again at a suitable time. The problem is that I don't know a) how to find out the scan code of this peculiar key (I think it might actually simulate two or more regular keys being pressed at the same time) nor b) how to make this trigger the execution of the GameBooster program (preferably without running an additional application). Surely Windows 7 has the capacity do this built in?

My System SpecsSystem Spec
13 Jan 2012   #2

MS Windows 7 Home Premium 64-bit SP1

I found a program called Keytweak and found the scan code for a special key, but it can only map to another key.
My System SpecsSystem Spec
13 Jan 2012   #3

Windows 7 32 bit

See AutoHotKey
AutoHotkey Community - Mouse and Keyboard Macros and Hotkeys

If you have the scan code you can set it to do some action or even launch programs using the Run command.
As example, where xxx is some scan code for a key:

SCxxx & UP::Run,Explorer

the & UP means it fires when you release the key rather than on key press.

You can "compile" the script so it has AutoHotkey interpreter inside the exe. Avoids having autohotkey installed on the machine to use the script. Several of my utilities are just AHK compiled scripts that sit in the Task Tray waiting for a hotkey press.
My System SpecsSystem Spec


 Mapping a peculiar keyboard key to start program

Thread Tools

Similar help and support threads
Thread Forum
Keyboard Mapping causing Password problem
Hi guys. I have recently done a clean reinstall of Win7 Pro. The PW I used to log on has a # in it, and I am able to log on without problems. But User Accounts will not accept the PW after I logged on and Windows is fully open. I guessing this is a keyboard mapping issue. I'm in New Zealand...
Hardware & Devices
How can I change keyboard/numberpad mapping?
I need to use a lot of greek letters (alpha, beta, ect) on a regular basis, along with modifications of these. It is a pain to have to use the numpad codes every time (when working with many of my formulas, I need to put in multiple codes for the same character due to recurring accents, bars, ect),...
General Discussion
Windows Runs Installation of Program When I Start Program
I installed Weathrbug Plus and for some odd reason recently when I run it Windows runs the installation for the program. When I run the prograsm I get the typical "Preparing to install..." abnd then tyhe 'Configuring Weatherbug. I've been in contact with Weatherbug Support all day and we can't seem...
gamepad keyboard mapping software ?
Hello, I've got thrustmaster 430 gamepad, it has this micro steering wheel around D-Pad. Problem is some games don't detect it and i started looking for some software that would allow me to map my gamepad buttons on keyboard/mice. I've found GlovePIE program, but it felt so complicated, had a...
Virtual Box screws up keyboard mapping after exiting
Hi, I'm running Windows 7 on an HP Pavilion dv4 with 4 gig of memory and after I have been on Virtual Box running XP for a while and I exit XP and Virtual Box my Win 7 keyboard is all messed up. By that I mean that pressing a key may bring a menu screen up. Or another key will cause the current...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:13.
Twitter Facebook Google+