ililim / dual-key-remap

Remap any key to any other two keys on Windows 🔥. Remap CapsLock to both Ctrl and Escape! (It's like xcape for windows!)
GNU General Public License v2.0
499 stars 36 forks source link

Remapping the with_other key with AHK #41

Closed flimofly closed 2 years ago

flimofly commented 2 years ago

I run into trouble trying to implement a basic one-on-one AHK remap of the with_other key.

I have this in my config file:

remap_key=CAPSLOCK
when_alone=ESCAPE
with_other=LEFT_CTRL

with this in AHK:

LCtrl::RAlt

Expected behavior: I am trying to use my CapsLock key as Esc/Ctrl, and my left Ctrl key as right Alt on a US-style keyboard, which does not have AltGr but does have a right Alt key and a right Ctrl key.

Actual behavior:

ililim commented 2 years ago

I tried this and seems to me to work as expected:

If you don't want the two apps to conflict you could do the following: