I'm using code I found in the user guide to wait for a process is process to stop. However, how do I set a limit to how long it runs for, and display an error if it doesn't stop?
<showprogressdialog> <title>Waiting for myapp.exe to exit</title> <actionlist> <while> <actionlist> <wait> <ms>1000</ms> </wait> </actionlist> <conditionrulelist> <processtest> <logic>is_running</logic> <name>myapp.exe</name> </processtest> </conditionrulelist> </while> </actionlist> </showprogressdialog>
asked 16 Mar '12, 12:48
You could use the below code:
answered 16 Mar '12, 13:06