Pulover's Macro Creator which has been used and sworn by for years. I prefer this over ghost mouse or any other Autoclicker or recorder. Make sure to watch it for a few cycles to verify it's not going to get hung up shortly after leaving it. Also, if you have cats/pets that will mess with your keyboard/mouse while AFK I suggest unplugging peripherals (on laptop set power option to do nothing when closing lid and leave it closed). I got a fairly leveled account banned from my cat knocking my mouse around while AFK crafting cannonballs.
Just be careful
EDIT: Not even a temp/2day ban. Perma ban on first offense with crap about using a bot etc when it was a basic autohotkey script I made with human-like movements and not simple mouse coordinate clicking and hotkeys (space, etc).