I would be using AutoIt to make that type of app.
Not worth learning C++ for scripting.
If you do a web search for AutoIt you will find the site. Make sure you use the SciTe edior, the FULL one, from their site.
Also you may find this page useful once you are trying to learn the language.
http://autoit.kazdan.com/
If you are having touble with it feel free to post your code and ask for help.