I am not sure that what i ask is possible , even less if possible with a few hours coding.
But if possible would be really useful
RELOAD TARGET PROGRAM
Not all programs have a option to reload but there are many cases were reload is useful, as example may be needed for changes to take effect , verify if new added plugin of script works , and so on
I would be interested to know if Gimp (that is open source ) may be reloaded using a external program or even simple macro to copy and re-run the 2 manual command needed to reload (=exit and a double click on the exe or a console call to start ) also because reload would be needed to perfect a Gimp addon manager , now limited because some changes require reload , but reload can't be automatized
But i believe they may be many other cases , regarding many other programs
I would be very happy is possible but at least i would like to know if is impossible, and i am open also to "oblique" solution , as capture and rerun mouse gesture and keystroke needed to reload..or the equivalent console commands
To know if possible in general ... and if yes if could work also with my favorite "target program"