Can you consider that you add a reading of the Exitcode from within command "RUN PROGRAM" ? Together with the commandline parameter passing MMM could interact with the external programms. Standard Exitcode is an integer.
Does "RUN PROGRAM" wait for ending of the program? If not, can there be an option to do so?
I like the idea of reading the exitcode from the output of run program but I'm not sure if it is possible to catch. RUN PROGRAM can call any program, file, script, anything really How that program it calls handles it's exit is likely to be independent to Mini Mouse Macro.
To answer your question, RUN PROGRAM (www.turnssoft.com/conditions.html#runprogram) does not wait for the program to end before continuing. I can't remember how i coded that but I can have a look at adding a switch to the command to wait.