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. |