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 sharpkeys but it wouldn't let me use a chord, only single key press.
I also tried powertoys 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.
31 Answer
You can use the freeAutoHotkey.
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 atC:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.
Useful AutoHotkey documentation: