Is there a way to automate this?

This will not work without a third party program and is a cheat request. I would advise you to stay away from such programs, 90% of them contain malware. Also it is not allowed in any TOS.