I have an Apple mini-USB keyboard I am using with Windows 7. My ultimate goal is to permanently remap the F12 key to be "Delete" so I can log in with Control+Alt+Delete (apple's keyboard only has backspace).
I have identified the keyboard scan codes for the keys I want to remap using AutoHotKey.
- Delete -
153
- F12 -
058
I have some experience with using the registry to remap keys such as caps to control, in this example:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
The registry code for Control as per this example is 3a,00
and its scancode is 03a
. It seems you need to just remove the leading 0 in this case to remap the key.
How does this work when your scancode has a value on this leading digit? Am I suppose to just use 53
as the code?