Вообщем вставил такой код
#CommentFlag //
#include UDF.ahk
SendKey(key := "", state := "") {
if (state == "")
ControlSend,, {%key% down}{%key% up}, ahk_exe amazing.exe
else
ControlSend,, {%key% %state%}, ahk_exe amazing.exe
}
DistToCam(x, y) {
if (!checkHandles())...