Mapping a peculiar keyboard key to start program

thx1139

New member
Power User
Local time
11:35 PM
Messages
110
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 Computer

OS
Win 7 Home Premium (OEM) - Install date: 02-2010
CPU
AMD X4 Phenom II 965
Motherboard
Gigabyte GA 790FXTA-UD5
Memory
OCZ Black Edition - 2x2GB DDR3-1600
Graphics Card(s)
Sapphire HD 5770 1GB GDDR5
Sound Card
Integrated
Monitor(s) Displays
Generic CRT
Screen Resolution
1024x7xx
Hard Drives
System: OCZ Vertex 2, 60 GB SSD
Data: Western Digital Caviar Black WD1002FAEX, 1TB HDD
PSU
Thermaltake w705 - 700 watt
Case
Fractal R2 Define
Cooling
Air
Keyboard
Generic
Mouse
Gigabyte Optical Gaming Mouse
Internet Speed
IDSL
I found a program called Keytweak and found the scan code for a special key, but it can only map to another key.
 

My Computer

OS
MS Windows 7 Home Premium 64-bit SP1
CPU
Intel Core 2 Quad Q6600 @ 2.40GHz
Motherboard
ASUSTeK Computer INC. P5B-VM SE (LGA775)
Memory
Corsair PC2-6400 (400 MHz) 4.00 GB DDR2
Graphics Card(s)
GeForce 9600 GT 1024 MB
Sound Card
SB Audigy
Monitor(s) Displays
LG W2252
Screen Resolution
1680x1050 @ 60Hz
Hard Drives
977GB Seagate ST31000528AS ATA Device (SATA)
488GB Seagate ST3500630AS ATA Device (SATA)
PSU
Corsair HX750W
Case
Antec 900
Cooling
Thermaltake fans
Keyboard
Microsoft Sidewinder X6
Mouse
Microsoft Sidewinder Mouse
Internet Speed
2 Mbps
Other Info
D-Link DIR-655 router
WD My Book 1.0 TB
Buffalo NAS LS-CHL v2 2 TB
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 Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top