

- #Microsoft keyboard mapping for map how to#
- #Microsoft keyboard mapping for map driver#
- #Microsoft keyboard mapping for map full#
- #Microsoft keyboard mapping for map code#
- #Microsoft keyboard mapping for map plus#
Just copy that text to a text file named, for instance, CapsLockToCtrl.REG, then double-click that file. The desired scancode is "Left-Ctrl" (scancode 0x1d) and the key to remap is CapsLock (scancode 0x3a). The hex data is in five groups of four bytes:Ġ0,00,00,00 - header version (always 00000000)Ġ0,00,00,00 - header flags (always 00000000)Ġ2,00,00,00 - number of entries (including terminating NULL)ġd,00,3a,00 - map entry: desired scancode, key to remap
#Microsoft keyboard mapping for map full#
First, I'll show an example, then I'll provide a full description. The Scancode Map value probably does not exist on your computer.

HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Co ntrol\Keyb oard Layout
#Microsoft keyboard mapping for map driver#
There is a little-known entry in the system registry that is checked by the lowest-level keyboard driver before the keystrokes get sent to the rest of the system: But I found a way to remap it - make it into a clone of the Ctrl key.

I first thought of just popping the key out and sticking a wad of chewing gum in there. That key should have been moved away from the home row decades ago. Among other irritations, it has caused endless tech-support grief relating to user-entry of passwords. Who among us has not hit that totally useless CapsLock key by accident? In 35 years of keyboarding, I've had a need for the CapsLock key perhaps twice. Not only does the desired action not happen, but CapsLock turns on and the current selection is replaced by one letter. In short: For common keystrokes such as Ctrl+C, Ctrl+V, I invariably hit CapsLock and it irritates me beyond belief. So I had to switch to one of the half-dozen "new" keyboards that were gathering dust in a closet. It had taken more abuse that you can imagine over the years, but it finally had one too many cups of coffee spilled on it. Well those OmniKey keyboards all eventually died the original IBM keyboard outlasted them all. In fact, when I heard that NorthGate was discontinuing that line in the mid 90's, I bought five of them. Even on secondary computers, like the ones at work, I've always been able to find keyboards that were finger-memory-compatible, such as the NorthGate OmniKey which has the function keys on the left side, where God intended them. Those keyboards were built to last (and last, and last.). I've been using the same IBM 84-key PC/AT keyboard for over 25 years. I'm having to retrain myself on a new keyboard.
#Microsoft keyboard mapping for map how to#
I used with pacman -S mingw-w64-x86_64-gcc and compiled with /mingw64/bin/gcc nocaps.c -o this article, I'll describe how to make registry changes that will remap low-level keyboard scancodes and I'll also show you how to set/change the functions of the extended-function buttons and controls that may be on your keyboard. The below console app need to be running for it to work. It listens for key presses, captures them, and constructs keyboard input with the mapping in mind. Thanks to Susam Pal's brilliant answer, I put the snippet below together. If, for some reason, you don't want to run third-party tools, it's possible to do this yourself with a bit of C.
#Microsoft keyboard mapping for map code#
3a,00,38,00,\ Send CAPS LOCK (0x003a) code when user presses the LEFT ALT key (0x0038) 38,00,1d,00,\ Send LEFT ALT (0x0038) code when user presses the LEFT CTRL key (0x001d) 1d,00,3a,00,\ Send LEFT CTRL (0x001d) code when user presses the CAPS LOCK key (0x003a) Each entry is in "least significant byte, most significant byte" order, Entries are in 2-byte pairs: Key code to send & keyboard key to send it.
#Microsoft keyboard mapping for map plus#
04,00,00,00,\ # of entries (3 in this case) plus a NULL terminator line. The hex data is in five groups of four bytes: CTRL is to the left of "A" where God intended it, ALT is below SHIFT, and the utterly useless CAPS LOCK key is safely tucked away where I have to break my wrist to hit it. I use the following to send CTRL for the CAPS LOCK key, send ALT for the CTRL key, and send CAPS LOCK for the ALT key.
