Last active
November 25, 2020 23:24
-
-
Save 0x4a/0850e6c4f887782e25b136d1e3928afd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#NoEnv | |
#SingleInstance, Force | |
Menu,Tray,Icon, %A_WinDir%\system32\shell32.dll,174 | |
; special characters on us-keyboard | |
kbdLayout := DllCall("GetKeyboardLayout", Int,DllCall("GetWindowThreadProcessId", int,WinActive("A"), Int,0)) >> 16 | |
if (kbdLayout == 1033) | |
>!a::SendInput ä | |
+>!a::SendInput Ä | |
>!o::SendInput ö | |
+>!o::SendInput Ö | |
>!u::SendInput ü | |
+>!u::SendInput Ü | |
>!s::SendInput ß | |
+>!s::SendInput ẞ | |
>!n::SendInput ñ | |
+>!n::SendInput Ñ | |
>!e::SendInput € | |
>!Escape:: return | |
+>!Escape:: return | |
#If (A_PriorHotKey = ">!Escape" AND A_TimeSincePriorHotkey < 1500) | |
a:: SendInput á | |
u:: SendInput ú | |
i:: SendInput í | |
o:: SendInput ó | |
e:: SendInput é | |
+a:: SendInput Á | |
+u:: SendInput Ú | |
+i:: SendInput Í | |
+o:: SendInput Ó | |
+e:: SendInput É | |
#If (A_PriorHotKey = "+>!Escape" AND A_TimeSincePriorHotkey < 1500) | |
a:: SendInput à | |
u:: SendInput ù | |
i:: SendInput ì | |
o:: SendInput ò | |
e:: SendInput è | |
+a:: SendInput À | |
+u:: SendInput Ù | |
+i:: SendInput Ì | |
+o:: SendInput Ò | |
+e:: SendInput È | |
#If ; turn off context sensitivity | |
return | |
;Msgbox, %kbdLayout% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment