Autohotkey is legit and the best answer.
pyauto is great if you like python, you'll be reinventing a reinvented wheel here, but that may be the best option if you like full control and want to understand every step.
If you're in a Windows Environment (not exclusively anymore!) I would also add PowerShell to the list. It's very powerful and I think having a good grasp of it, helps programmers of all skill levels gain full use and understanding of their machine. It's also the default Windows Shell going forward, so the more you can do with it the less existing programs you'll need.