From e4a649fc8c21f3e1854c934c961698eca53873cb Mon Sep 17 00:00:00 2001 From: Marcel Kirsche <29892807+kirschem@users.noreply.github.com> Date: Fri, 15 Apr 2022 17:34:53 +0200 Subject: [PATCH] #622: Mirror umlaut behavior from macos with ahk --- windows/kinto.ahk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/windows/kinto.ahk b/windows/kinto.ahk index 2f99d04..4680403 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -858,3 +858,28 @@ Send {LWin up} Send {RShift up} Send {LShift up} return + +#IfWinNotActive ahk_group remotes + $!u::Goto, ActivateUmlautModifier + $!s::Send, ß + + ActivateUmlautModifier: + StringCaseSense, On + ; watch next input string + Input, UserInput, L1 B + if UserInput = o + Send, ö + else if UserInput = O + Send, Ö + else if UserInput = a + Send, ä + else if UserInput = A + Send, Ä + else if UserInput = u + Send, ü + else if UserInput = U + Send, Ü + else + Send, %UserInput% + return +#If \ No newline at end of file