Swapping unshifted and shifted versions of keys
Posted: 13 Apr 2024, 18:07
I'm new to Autohotkey and have been trying to use it to swap the shifted and unshifted versions of Semicolon/Colon and Grave/Tilde keys for use in typing in Windows 10. I found online the script below:
That works fine for the Semicolon/Colon key. However, when I simply replace the Semicolon symbol in that code with the Grave, and compile that:
the result is to disable the Grave/Tilde key altogether. I've spend hours fiddling with quote, escapes, etc., but the results have been mostly "bad syntax," and none have worked. I'd be grateful to be told what I'm doing wrong, and how to get this simple script working.
--Donald Davis
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
[Mod edit: Moved topic from AHK v2 help since this is v1 code.]
Code: Select all
$+;:: Send {Shift Up};{Shift Down}
$;:: Send {Shift Down};{Shift Up}
Code: Select all
$+`:: Send {Shift Up}`{Shift Down}
$`:: Send {Shift Down}`{Shift Up}
--Donald Davis
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
[Mod edit: Moved topic from AHK v2 help since this is v1 code.]