Last active
August 9, 2023 07:10
-
-
Save Robert-Beier/7b7b0a152fcb17bfcebc8bb12e142638 to your computer and use it in GitHub Desktop.
AutoHotkey script allowing the English International keyboard shortcuts for umlaute (ä, ö, ü) and eszett (ß) on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Alt+S -> ß | |
!s:: Send ß | |
return | |
; Alt+U followed by A -> ä | |
; Alt+U followed by Shift+A -> Ä | |
; Alt+U followed by O -> ö | |
; Alt+U followed by Shift+O -> Ö | |
; Alt+U followed by U -> ü | |
; Alt+U followed by Shift+U -> Ü | |
!u:: | |
Input, key, L1 | |
if (key = "a") | |
{ | |
if (GetKeyState("Shift", "P")) | |
{ | |
Send Ä | |
} | |
else | |
{ | |
Send ä | |
} | |
} | |
else if (key = "o") | |
{ | |
if (GetKeyState("Shift", "P")) | |
{ | |
Send Ö | |
} | |
else | |
{ | |
Send ö | |
} | |
} | |
else if (key = "u") | |
{ | |
if (GetKeyState("Shift", "P")) | |
{ | |
Send Ü | |
} | |
else | |
{ | |
Send ü | |
} | |
} | |
return |
@mbinna Your screenshot with the error message is referring to another script.
AFAIK the return
statement in line 3 should stay. In the examples from the documentation they also add a return
statement after every Hotkey -> Send
block.
Your screenshot with the error message is referring to another script.
I had some additional settings at the top of my script. I removed them and don't get the warning anymore. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Disclaimer: This script doesn't include the whole implementation of the English International Mac keyboard layout for windows. Only the parts I need.
I was annoyed by having to switch between the German and US keyboard layout on Windows. I didn't find any solution on Windows that is as elegant as the solution on Mac.
I personally also include the following part at the end of the script to make the < (>) key between my left shift key and my Y key become a ` (~) key like on the English International Mac keyboard.
Now I can finally type in peace ☺