You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality.

problem remapping key in cygwin and putty

Started by
autohotkeyforum
, Apr 07 2006 03:10 PM

Please log in to reply

7 replies to this topic

autohotkeyforum

Members

8 posts

Last active: Oct 18 2006 12:28 PM

Joined: 06 Apr 2006

Hi folks,

I have the problem that I like to use autokey to remap some keys on a keyboard, so that they fit to a preferenced keyboard layout.

Insert::Delete
Delete::Home
Home::Insert

I have the Problem the pressing the home-key which should result in pressing the insert-key only print ~ to the window. The same effect I have with pressing the insert key only print ~ to the window instead of deleting a character.

If you want to remap these keys permanently, you might consider using the registry. That might be a more complete remapping that solves the incompatibilities you mentioned. I can post the details if you want them.

If you want to remap these keys permanently, you might consider using the registry. That might be a more complete remapping that solves the incompatibilities you mentioned. I can post the details if you want them.

Steps:1) Save the following as Remap.reg or similar.2) Launch the file to put this info into the registry.3) Reboot for the changes to take effect.

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,\
; ---------------------------------------------------------------------------
; BE SURE TO UPDATE THE COUNT BELOW TO REFLECT THE TOTAL NUMBER OF REMAPS + 1 (and write it as hexadecimal, not decimal)
; (1 extra for the null terminator):
; ---------------------------------------------------------------------------
04,00,00,00,\
; 01. Delete sent in place of Insert:
53,E0,52,E0,\
; 02. Home sent in place of Delete:
47,E0,53,E0,\
; 03. Insert sent in place of Home:
52,E0,47,E0,\
; 04. Null Terminator -- be sure to change the count at the top to reflect this number.
00,00,00,00

How to Customize the Above: The numbers above are the last two digits of the key's scan code as shown on AutoHotkey's Key History screen. However, all the E0's are different: an E0 is present when AutoHotkey's scan code has a first digit of 1. By contrast, 00 is present when the first digit is 0 (doesn't apply in this particular example).

To return to your original layout, you can clear or delete the "Scancode Map" item in the above registry location (then reboot).