ДР
#if WinActive("ahk_exe Illustrator.exe") and not WinActive("ahk_class #32770")
~w::
if not (ControlGetClassNN(ControlGetFocus("A")) ~= "Edit"
or ImageSearch(X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, "characters.png"))
Key "^h"
Key "^;"
Key "^!i"
Key "^+b"
return