View Single Post
  #4 (permalink)  
Old 06-14-2007, 12:37 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 522
Default

Hello Nick,

In that case you can do something as follows

Open Notepad.exe (untitled - notepad) in Task.exe and Close Untitled - notepad when task.exe finishes

Open Program File Task2.exe
Delay 500 ms
Wait For Window To Close ('Untitled - Notepad')
Other actions.

Alternatively

Open Program/File Task2.exe
If Application Is Not Running <path of Task2.exe> Wait up to (Upper Range)
End If
Other Actions

Here, If/End If will work as Wait if you specify the Wait Time. It will wait up to the time you specified and if task2.exe finishes earlier then it continues further.

This will get around the nested loop problem.
Reply With Quote