How do I remap a key to a key-combination in the Windows 7 registry?

3

2

I have been able to remap the CapsLock key (3A) to the Left Shift key (2A) by adding the binary value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\Scancode Map to the registry with a value of:

00 00 00 00  00 00 00 00

02 00 00 00  2A 00 3A 00

00 00 00 00

How can I modify this value so that the key remaps to a multiple-key combination, for example Alt-Shift?

Paul Williams

Posted 2011-08-09T04:56:12.037

Reputation: 155

sorry for reviving this old question, but I want to do a similar thing. I want to bind AltGr + esdf to the arrow keys. In the windows keyboard layout creator these kind of key combinations can be bound, but only to characters it seems. I was wondering if the scancode could be remapped in the registry, as a workaround. i don't want to install Autohotkey on my company computer but i can install custom keyboard layout drivers and add registry entries, so it would be awesome if it would be possible. – Nisse – 2017-05-12T05:47:46.430

2I thought Keyboard Layout could only be used to map one key to another one. Is there any restriction from using third party apps? AutoIt or AutoHotKey would be perfect for this – Martheen Cahya Paulo – 2011-08-09T05:00:13.910

Thanks. I can definitely do this with AutoHotKey, however I was hoping that I could do it in the registry so that I wouldn't have another process running. If this can't be done in the registry, then I guess that's my answer. – Paul Williams – 2011-08-09T05:23:42.180

AutoHotKey is my third party app of choice for this sort of thing. – Windos – 2011-08-09T05:26:15.397

Answers

2

there are two options shown here at AutoHotKey: Remapping via the Registry's "Scancode Map" , might be what you are looking for...

(1) Use a program like KeyTweak (freeware) to visually remap your keys. It will change the registry for you.

(2) Remap keys manually by creating a .reg file (plain text) and loading it into the registry. This is demonstrated at www.autohotkey.com/forum/post-56216.html#56216

Jags FL

Posted 2011-08-09T04:56:12.037

Reputation: 371

While neither of these solutions do exactly what I was looking for, the information you gave me has helped lead me to the conclusion that what I want to do is probably not possible with the registry. It appears that AutoHotKey or something similar is my best bet. – Paul Williams – 2011-08-11T14:49:49.480