I dont know, if you know it, but maybe it can help you a lot: http://www.ownedcore.com/forums/diab...rsion-2-a.html ([AutoIt] Diablo 3 Click To Move, Interaction, Actor Handling. (Version 2))
Its a UDF for Diablo 3. And is amazing^^ Would be maybe nice to optimize your code.
I think, Autoit is really programmer friendly xD... Perfect for beginners, "good enought" for better programmers.
*edit*
Seems, that you have already stolen parts of it... lol