2 ms·
I just use AutoHotKey because I'm already using AHK for so many things. On Windows, I think most people who would want to remap these keys are already using Au
by nickjj 7y ago
I just use AutoHotKey because I'm already using AHK for so many things.
On Windows, I think most people who would want to remap these keys are already using AutoHotKey to set up custom global hotkeys or do other tweaks.
The entire AHK script is a 2 liner that you can put into an existing script, such as:
CapsLock::Esc
Esc::CapsLock
Only including that here because the OP's alternative AHK example in the readme remaps CapsLock to Escape, but it doesn't include remapping Esc to CapsLock (both are necessary to swap the keys).
His current example would leave your Esc key unchanged, meaning you would have 2 escape keys and 0 CapsLock keys.
- karmakaze 7y agoI suspect it was intentional as I too would want 0 keys mapped to CapsLock. Is there a way with AHK to map CapsLock tapped by itself to Esc and held with other keys as Ctrl?
- nickjj 7y agoI've never tried that behavior and I'm also not an AHK wizard (I use it for a few global hotkeys, remapping escape and some small tweaks). But Google came up with this: https://autohotkey.com/board/topic/104173-capslock-to-control-and-escape/ https://autohotkey.com/board/topic/104173-capslock-to-contro... The last reply's code sample looks like it would do what you want in a non-buggy way. If not, there were about 20 other Google results for combo mapping CapsLock to CTRL and / or Escape depending on how it was pressed.