I wanted to remap a "menu" key to Left Alt to use it with combinations with other keys. Like Alt+P for example. I used KeyTweak, ShaprKeys and PowerToys but they are not working like i expected them to. Using an online website to check what button and when is pressed I discovered that my remap was triggered only when I released "menu" key. Alt was not registered as being pressed until I let go of "menu" key. Is there any way to remap a key in a way that both press and release are registered so my computer can correctly read combinations with other keys?


Solution 1:

You can use the free AutoHotkey.

The following script will remap the left Windows key to Alt:

*LWin::send, {Alt down}
*LWin up::send, {Alt up}

If you would like to rather use the right Windows key, substitute LWin with RWin

After installing AutoHotKey, put the script in a .ahk file and double-click it to test. You may stop the script by right-click on the green H icon in the traybar and choosing Exit. To have it run on login, place it in the Startup group at C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

Useful AutoHotkey documentation:

  • List of Keys
  • Hotkeys