Nope i didnt use autoit, I wrote a dll with visual c++ to use the trampolining trick on user32.dll (actually I removed Gameguard's hook on these functions: PostMessage, SendMessage, SetCursorPos and mouse_event) but I use visual basic to code macros using my dll. I can send you my dll so you can try it with autoit (i don't know if you can use dll functions in autoit ? oO)
I can send all keys too (including a-z, 0-9, special chars, f-keys etc..) but when I use skill (for example when I send 1 to use first skill in the skill bar, it doesn't work. And when I send return+1 it shows "1" in the chatbox. Dunno if you understand me ^^