I have a Dell Laptop. It has an annoying little hotkey button that i wanted to re-asign to Media Center and not to use 'Dell Quick Set'. I also didn't want to download a full program to do this.
But i can across a program called AutoHotKey. This is an autoit based program that helps you to write your own scripts and compile them to programs to manage hotkeys.
Bellow is a simple step by step guide to creating a script using AutoHotKey for a special keyboard button which is currently unassigned.
1. Download and install AutoHotKey from
http://www.autohotkey.com/download/
2. Open notepad and enter the following
Save the file as KeyHook.ahk and close notepad
This will help you grap the keys id code for use latter.
[DURING STEPS 3 -7 DO NOT ENTER ANY PASSWORDS INTO YOUR COMPUTER AS THE SCIPT IS DESIGNED TO RECORD YOUR KEYSTROKES SO THAT YOU CAN IDENTIFY YOUR HOTKEY]
3. Run the new file you just created by double clicking its icon
You will notice a green icon with a H appears in your system tray, double click it.
4. A window will appear, in the window click View> Key History and Script Info
5. The window will change and it will show a list of the keys pressed since you started the script.
Press your hot key now
Press F5
6. The window will have refreshed and at the bottom you will see somwthing like this:
Code:
54 014 d 4.77 T
54 014 u 0.09 T
74 03F d 0.75 F5
Press [F5] to refresh.
In this case I pressed T as an example. But in your case it will show your hotkey. (Note: In the key column it may show a letter, ignore this)
Make a note of the value in the second column as i have shown in red for my case.
7. Go File>Exit
8. Open notepad and paste in the following:
Code:
#NoTrayIcon
SC112::
Run %SystemRoot%\ehome\ehshell.exe
return
Replace the number in red with your own from earlier and the text in blue with the path of the programm you want to run.
(Note: If it is not a special key replace the whole SC112 with the appropriote key found here:
http://www.autohotkey.com/docs/KeyList.htm)
9. Save the script as whatever you want but with an .ahk file extension. eg HotKey.ahk
10. Use 'Convert .ahk to .exe' found in Start > All Programs > AutoHotKeys and compile it to an appropriate location. If you want you can then add it to startup by placing it in Start> Programs > Startup
By placing it in the startup folder the script will run when you logon allowing you to use the hotkey to open your specified program. There is no visible evidence that the program is running while it runs. To exit the program once launched you will need to open Task Manager (Ctrl + Alt + Dlt) go to proccesses locate the program by the name you saved it as , right click on it and click 'End Proccess'