Most of the functions that AutoIt uses are hooked by GG(keybd_event, SendInput, PostMessage, GetPixel, etc), so its pretty much useless. You are going have to code your own program to get around GG. The easiest method, with intermediate knowledge of coding in C++, is using hook-hopping to get around the hooks and create your own bot. If you don't want to code your own hookhop, you can always search PMX.dll, used for hook-hopping in MS in your app. I believe it bypasses all the neccessary functions, which you can use in your program.
Если возможно , приведите плз пример посылки какой-нибудь клавиши