Well, anyone who wants to start learning AutoIT code, I'd probably start by taking a look at this example.
It's a verrrrry simple tracking hack which I made for WoW 3.0.9.
It comes with the program, source and readme. The source is all neatly set out and labeled so it doesn't make your eyes bleed.
Any questions you have, please post in this thread
Download: JetlagJad's TrackHack