Okay, so first off you will need AutoIT for this which can be found @ AutoIt v3 - Automate and Script Windows Tasks - For Free!
NOTE:I just began autoIT. There may be smarter ways to do this than I do it.
Once you have that, make a new file and write;
Code:
WinWaitActive("World of Warcraft");
Sleep (5000)
$pos = MouseGetPos()
MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])
First row means it activates once 'World of Warcraft' is open
Second row means it waits 5 seconds
Third row means the variable $pos gets the position of the mouse
Fourth row opens a msg box telling you the location of your mouse.
Now that you have that, press Save as and name it something like 'GetMousePos.au3'.
Now log on WoW and go to battlemaster, I would suggest Thunder Bluff, Silvermoon City, Darnassus and Exodar (they are pretty low populated, on my server at least), why you ask? It will become way to obvious that you have an anti-afk bot if you just stand there jumping in OG/IF with those 7 kills and 6000 honor gained, perhaps someone will find it amusing to report you. This chance is heavily decreased if you do it in those 4 cities.
So now that you are here, go find someone who just left an AV, and stand exactly like he does. Now just stand still and alt tab to open your GetMousePos.au3 and run it. Simply run it, alt tab back to WoW, hold mouse over Battlemaster for 5 seconds and you're done.
Now open that script editor you got there and type in;
Code:
WinWaitActive("World of Warcraft");
$a = 0
While = $a < 10000000000000000000
$a = $a + 1
Sleep(1000)
MouseClick("right",X,Y)
of course you change X,Y to the mouse coords that pops up when you used GetMousePos.au3.
Now the rest is pretty simple. Simply use GetMousePos.au3 on the 'Sign up for battleground' then 'Join Battle' then 'Enter Battle', then you're pretty done, to speed it up abit, you might want to make one for 'Leave Battleground', instead of waiting 2 minutes. Now that you got all those coords, simply sleep for like 0.2 seconds, make a new mouseclick, sleep, mouseclick. Then once you've done all those mouseclicks dont forget to jump (Write send("{SPACE}") on a new row)! Else you will go AFK, clicking isn't enough...
OH and dont forget to change it so it left clicks (change MouseClick("right",X,Y) to MouseClick("left",X,Y)
I wrote this at 01:58 AM, so I was pretty tired, might aswell fix mistakes when I wake up in the morning.
In case you did not understand those big blocks of texts, heres my version, simply change all mouse coords to yours...
Code:
WinWaitActive ("World of Warcraft");
$i = 0
While $i < 1000000000000000000
$i = $i + 1
Sleep (5000)
Send ("{W down}")
Sleep (500)
Send ("{W up}")
Sleep (500)
Send ("{S down}")
Sleep (700)
Send ("{S up}")
MouseMove (654,338)
Sleep(100)
MouseClick("right",654,338)
Sleep(100)
MouseClick("left",115,296)
Sleep(100)
MouseClick("left",198,589)
Sleep(60000)
Send("{Space}")
MouseClick("left",563,213)
Sleep(100)
MouseClick("left",665,704)
WEnd
It walks forwards and backwards so mouse aims straight at the BG master, I actually got into 5 WSG's without that one by mistake :/. Must have Smart camera on (Or whatever you call that option (its in interface menu.))
To start this simply stand infront of the battlemaster, run the anti-afk bot, alt tab to World of Warcraft, you might wanna do a test run before leaving the comp
I thought this would fit in here even though it's more of a guide. If not, feel free to move it. (I did not think it would fit in 'World of Warcraft Guides' seeing as this is more AutoIT than World of Warcraft)
Feel free to post ways on how to simplify this. Read the big fat red note before saying my way sucks. Thank you!