| 1. |
Check if
backup process is going on |
- Click Tools->Task Editor.
- Select the Start Loop command from the
Loop category.
- Select the 'Condition' option
- From the list of conditions, select the
'Window Exists' option and specify the Window
title of your backup application.
- You can put a delay of 10 seconds within
the loop so that way it will check for
condition after every 10 seconds.
Loop While Window
Exists("Backup Progress")
Comment:
Backup is in progress...
Comment:
Wait for 10 seconds.
Delay:
(10000 ms)
End Loop
|
|
When you run this task, it checks whether
<window title> exists or not. It keeps on
executing loop command it it finds <window
title>. If it does not find the window
title, it stops executing the commands within
loop & executes commands after End
loop.
This tutorial
demonstrates use of 'Loop' & 'If
conditions' together which makes it so powerful
to solve complex problems. With loop you can
use any other condition like 'File exists',
'File does not exist', 'Folder exists', 'Folder
does not exist', 'Application running',
'Application not running', 'Ping successful',
'Ping unsuccessful'. You can also use variable
in creating conditional Loop structure.
|