Here's an example of adding a German Umlaut A:
- Open the main window of AutoKey.
- Click the New button in the toolbar.
- Click Phrase in the drop-down menu that opens.
- Type in German Umlaut A as the name for the phrase.
- Click the OK button.
- Type ä into the phrase contents area (the text area on the right side of the screen).
- Click the Set button next to Hotkey: (None configured) at the bottom of the window.
- Click the Alt button in the little window that opens.
- Click the Press to set button in the same little window.
- Press the a key.
- Click the OK button.
- Close the main window of AutoKey.
Now, whenever you're in any window and press
Alt+a, you'll get a lower-case Umlaut A (because that's what you typed into the contents of the phrase).
The problem will be that if you do upper-case and lower-case Umlaut A, then you'd need separate phrases for each.
My approach to this is that I made four phrases, one for the German sharp S and one each for the Umlaut A, Umlaut O, and Umlaut U. Then, instead of triggering them with a hotkey key combination as above, I trigger them with abbreviations (ss or ae or oe or ue). The advantage to the abbreviations is that you can match the case to the typed abbreviation, so if I type
ae, I get
ä, but if I type
AE, I get
Ä. As long as you're comfortable Americanizing your Umlauts by using them in combination with
e, you can really fly when writing German. Also, if you ever have a word you'd like to type that should contain an
ae instead of a German Umlaut A, press the
Backspace key immediately after AutoKey does the conversion (in other words, type ae Backspace instead of just ae) and the change will be undone. Most of the time, I manage to do that, but you'll occasionally see an Umlaut sneaking its way into some of my text, because I didn't notice the conversion happening.
In case you're interested in doing it the way that I do, these are the steps I followed to set mine up, once again using the German Umlaut A as an example:
- Open the main window of AutoKey.
- Click the New button in the toolbar.
- Click Phrase in the drop-down menu that opens.
- Type in German Umlaut A as the name for the phrase.
- Click the OK button.
- Type ä into the phrase contents area (the text area on the right side of the screen).
- Click the Set button next to Abbreviations: (None configured) at the bottom of the window.
- Click the + Add button in the little window that opens up.
- Type ae into the box.
- Press the Enter key.
- Make sure the Remove typed abbreviation box is checked.
- Make sure the Match phrase case to typed abbreviation box is checked.
- Make sure the Ignore case of typed abbreviation box is checked.
- Make sure the Trigger when typed as part of a word box is checked.
- Make sure the Trigger immediately (don't require a trigger character) box is checked.
- Click the OK button.
- Close the main window of AutoKey.
Now, whenever AutoKey is running and you're in any window that accepts type, type your German normally and use ss for a sharp S and ae and oe and ue for the Umlauts and AutoKey will instantly make the changes for you.
One final note: These are not the only ways this can be done. You could create a script instead and use an if statement to detect what was typed and make the appropriate substitutions. I also have no doubt there are hundreds of other ways it could be done.
Have fun with it, and feel free to reach out if you run into any trouble.