diff options
-rw-r--r-- | tt.programs.ahk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tt.programs.ahk b/tt.programs.ahk index 9d9578d..6027f82 100644 --- a/tt.programs.ahk +++ b/tt.programs.ahk @@ -149,4 +149,15 @@ SendInput, {LAlt Up} AltTabActive := 0 return +#If WinActive("ahk_exe SimCity 4.exe") + +; Fix pausing for non-English keyboard layouts +^SC029:: +old := Layout() +us := DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1) +DllCall("SendMessage", "UInt", WinActive("A"), "UInt", 80, "UInt", 1, "UInt", us) +SendInput, {LCtrl Down}``{LCtrl Up} +DllCall("SendMessage", "UInt", WinActive("A"), "UInt", 80, "UInt", 1, "UInt", old) +return + #IfWinActive |