There are several macro programs about on the net. I used Macro Angel quite a bit when I played DAoC. I used it mostly for crafting. You can use it to macro typing, button clicks, other programs or scripts, almost anything. It's totally customizable and comes with several macro examples.
Now the not-so-great news. It's shareware. You can download the demo but the full cost is about $30. However, the one I used I downloaded from a crack site. I imagine someone probably has a torrent of it as well but I haven't searched yet.
If you use Macro Angel along with other programs you could possibly set up an effective AI for when you're botting. It might even be convincing enough to fool a GM if done well.
Thought I'd just put that out since I didn't find any posts about Macro Angel. Good solid program that runs in the background and there's no way WoW can detect it unless they're scanning parts of your HD that have nothing to do with WoW
----(please leave the copyright info below intact)----
This post is copyright by the user posting it and MMOwned.com - World of Warcraft Exploits,Hacks, Bots and Guides, where it was posted. You may not copy or reproduce the above on any other site without written permission from both the poster and MMOwned.com