Remapping Keys on a G80-2551 under Windows using AutoHotkey
Posted: 21 Feb 2012, 19:05
Hey guys,
I just started remapping my keyboard using Autohotkey, and thought that some others might be interested in it too. (Especially with all these G80-2551 being sold on ebay atm...) At first I started by reading out all of the scancodes using a (apparently pretty buggy) Keyboard Hook Script. Here are the results:
As these codes appeared familiar to me, I just checked, and it's exactly the same layout as on my Terminal Emulator Boards. I was too lazy to check it with the original Terminal Board and a teensy, but AFAIR the codes a Teensy sends are NOT the same.
Now most of the keys can simply be remapped using an easy script using the following template:
I won't give too many details on the usage of AHK, as it is a) too complex, and b) I don't know too much about it either.
Many special keys are described here: http://www.autohotkey.com/docs/commands/Send.htm
E.g. to make the two blank buttons on the left side send the win and the menu key you would need:
But when I looked at the 4 keys around the arrow Keys (the 123rd to 126th keys if you will) I encountered a problem, where I would ask for the help of some more experienced AHK users: These keys send a combination of keys which looks strange to me. Due to the buggy Keyhook script I couldn't see, in which sequence the Scancodes are being sent, but these keys send the Scancode for a number key (from 1 to 4) AND an obscure "SC000". I don't know what SC000 is normally, but I'm pretty sure it's reserved for something special. I already tried "SC000&SC002::", but AHK denied to load the script, stating the Hotkey was invalid, so I doubt if it's possible to remap these keys at all.
Anyhow I hope that this helps some people out there!
RC-1140
I just started remapping my keyboard using Autohotkey, and thought that some others might be interested in it too. (Especially with all these G80-2551 being sold on ebay atm...) At first I started by reading out all of the scancodes using a (apparently pretty buggy) Keyboard Hook Script. Here are the results:
Code: Select all
Function Rows (Top): Row 1(FLTR):
SC05B SC05C SC05D SC063 SC064 SC065 SC066 SC067 SC068 SC069 SC06A SC06B
Row 2:
SC03B SC03C SC03D SC03E SC03F SC040 SC041 SC042 SC043 SC044 SC057 SC058
Function Keys on the left: Arrow Key Cluster:
SC071 SC076 SC05A SC149 SC151
SC072 SC045 SC14F SC152 SC153
SC074 SC06D SC004 SC148 SC005
SC137 SC06F SC14B SC147 SC14D
SC075 SC06C SC002 SC150 SC003
Now most of the keys can simply be remapped using an easy script using the following template:
Code: Select all
SCXXX::Send $resultingkey
Many special keys are described here: http://www.autohotkey.com/docs/commands/Send.htm
E.g. to make the two blank buttons on the left side send the win and the menu key you would need:
Code: Select all
SC06C::Send {AppsKey}
SC075::Send {LWin}
Anyhow I hope that this helps some people out there!
RC-1140