Windows: Swap Underscore and Dash Key

Windows: Swap Underscore and Dash Key

My question is the same as keymap swap underscore and dash, but for Windows instead of Linux. How might I swap the dash - and underscore _ keys so that underscore is shift-less?

I tried using but it wouldn't let me use a chord, only single key press.

I also tried keyboard manager Remap Shortcut, but it wouldn't allow matching a chord with a single key, both source and target have to be chords. Update: it does allow swapping a chord with a single key, but not AND use the reverse at the same time.

Update2

This PT configuration only outputs dash:

It may well be that either program actually can do this but I failed to find the right path. At any rate, I need help. Any suggestions?

Keyboard layout is US-ANSI.

3

1 Answer

You can use the free AutoHotkey.

To swap _ and - you could use a AutoHotkey script such as:

$-::Send, _
$_::Send, -

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:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.