A tip for you, if you're trying to create anti-afk bots is to download Tasker. Just search google for it.
Tasker is a program where you can record anything on the computer, key-strikes, mouse-movements, etc.
So you first record what you would like to "bot".
Maybe, alt+tab to WoW and press d once, so you move a little.
Then you tab out again, and stop the recording on Tasker.
After that, you can choose how many times you want Tasker to repeat this thing you just recorded. 20? 100? It can even do it continuesly until you want it to stop, by simply pressing Ctrl + Esc.
You can also choose how fast you want it to be repeated, slowmotion, normal speed, fast or very fast.
This program only works while not doing anything else on the computer, so id you want to surf the web while doing this, get something else. but if you're going to do your homework, this is your thing
So, good luck with your honor leeching
C