Only way I can think of is to make your own macro or use one of those programs that records mouse/keyboard presses and repeats them over and over.
That is the most common one and is not a bad way to get your foot in to scripting too.
Thanks for the answer Sapphire.
[Edited by Varacka, 2/13/2016 3:07:09 AM]
In my case I builded a complete Bot for a Browser Game, and it does everything for me like I would be self playing, starting by Login, Server choosing, checking values for activating needed actions, aso...
...hundrets of pre-given actions / options for any needs ;-)
* Up to 400 new and updated trainers monthly
* Manage and update trainers through one app
* Request which games get new trainers
* Priority support with any problem