Hi Brian,
you are correct. It is possible to kill the process started by ShellExecute (WinAPI of course although I sometime feel like an Win-Ape when working with WinAPI) after a certain time. But with a script that contains several hundred or so runs, killing the process (that fails to complete run #257 for example) would mean not to execute the remaining runs (258, 259, ...) in the script.
An alternative would be to execute React for every single run (with an individual script for each run). But that approach would be considerably slower since React would have to be reloaded every time.
A way to handle the problem would be to write code that
- continuously checks which runs have been completed
- kill React if one run takes too long
- remove from the script all parts that have already bee processed and
- restart React with the shortened script