Actionscript Wait timeout on hanging process

See Here: Running a command with a timeout

You can institute a timeout in actionscript now without any need for an RFE, but it is a manual process and not as easy as it should be.

It requires you to use the RUN command instead of the WAIT command, then use a PAUSE WHILE statement with a timeout immediately after. Then if the timer expires and the command is still running, you can kill it in the actionscript.

Something like this: (this is not exact)

run program.exe
parameter "start_1"="{now}"
pause while { (now-time (parameter "start_1") < 360*second) AND exists running process whose(name of it = "program.exe") }
if { exists running process whose(name of it = "program.exe") }
    wait taskkill /F /T /IM program.exe
endif

Related:

5 Likes