reddit / emacs

Remap windows key to meta/alt key

Weird_Locksmith9662 · 2022-12-17 00:00
Is it possible to remap the windows key to meta/alt? I do not have access to the Windows Registry (work computer). ​ Thanks in advance.
ZealousZera · 2022-12-17 09:06
maybe cou can modify this, from [here](https://superuser.com/questions/949385/map-capslock-to-control-in-windows-10): ``` Windows Registry Editor Version 5.00 ; The hex data is in five groups of four bytes: ; 00,00,00,00,\ header version (always 00000000) ; 00,00,00,00,\ header flags (always 00000000) ; 04,00,00,00,\ # of entries (3 in this case) plus a NULL terminator line. ; Entries are in 2-byte pairs: Key code to send & keyboard key to send it. ; Each entry is in "least significant byte, most significant byte" order, ; e.g. 0x1234 becomes `34,12` ; 1d,00,3a,00,\ Send LEFT CTRL (0x001d) code when user presses the CAPS LOCK key (0x003a) ; 38,00,1d,00,\ Send LEFT ALT (0x0038) code when user presses the LEFT CTRL key (0x001d) ; 3a,00,38,00,\ Send CAPS LOCK (0x003a) code when user presses the LEFT ALT key (0x0038) ; 00,00,00,00 NULL terminator [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,\ 00,00,00,00,\ 04,00,00,00,\ 1d,00,3a,00,\ 38,00,1d,00,\ 3a,00,38,00,\ ```
wtreese · 2022-12-17 16:20
I have used [AutoHotKey](https://www.autohotkey.com) for that, without needing admin privileges.
Weird_Locksmith9662 · 2022-12-17 16:28
Thank you!