The point of an AFK macro is simple: the boring part runs while you are asleep, and the rewards are there in the morning.
It repeats a sequence of key presses and mouse actions on a loop, with the same timing you used when you set it up. That is the whole trick — there is no clever logic behind it, and that is exactly why it is reliable.
Because it works at the level of input rather than inside the game, it does not care which game is in front of it. The same tool handles hatching, collecting, and keeping a character from being kicked for inactivity.
The PC going to sleep is number one. A macro cannot press keys on a sleeping machine, so set the power plan to never sleep before you start.
The screen locking is number two, and it catches people out because the machine is technically awake. Turn off the lock timeout for the session.
Windows deciding to restart for updates is number three, and it is the one that costs a whole night. Pause updates if the run matters.
And finally, anything that moves or resizes the game window — a notification, another program stealing focus. Full screen and no interruptions is the safest setup.
No. It presses keys and moves the mouse, exactly as a person would. Nothing is injected and no files are modified.
No — keep it visible and in the foreground.
No. It uses almost nothing; the game is what uses the resources.
Yes, because it works at the input level and not inside a specific game.
Yes, open source under the MIT licence, no account and no trial.