Ever want to create your own bots? Well the “hello world” to the bot world is generally anti-afk bots, they don’t do anymore than make it appear the user is at the computer. This won’t be too advanced as we are just going to be using ‘apple script’, a “real bot” would generally hook into the actual program and interface with it directly and not the keyboard. However this is a very good place to start.
First you must open “Script Editor” on your mac and then you can paste this code in the top window.
repeat 100 times
tell application “System Events”
tell application “World of Warcraft” to activate
key code 49
delay (random number from 30 to 90)
There you have it,all you need to do is open up WoW, log in and click run in script editor, I don’t recommend overusing this macro as players may report you if you are doing it all day in battlegrounds. And you can get banned, however if you just use it every once and a while while you take a shower or go eat; i doubt you will be banned. However use at your own risk, there is always the chance.
Curious how it works? Here’s an explanation.
- First we are setting up a loop, in this case it will perform everything until “end repeat” 100 times.
- Next we let the command know we are going to be sending “System Events” to the application “World of Warcraft”. This basically ensures your WoW window has focus, so it will send the goods to the correct program.
- After the program is open, we are going to press the space bar. If you want to send text, you can use the “Keystroke” syntax; however special keys such as space and enter can be a bit tricky. Use this program to get a listing of key codes: Full Key Codes
- Ok now to look atleast a little human, lets wait a random number of seconds between 30 and 90 before we do anything else.