The do-while statement executes the specified expressions repeatedly until the specified end condition is evaluated as false. You have to enclose a condition to be specified with parentheses.
do
expression-1
expression-2
...
...
while (condition);
You should not specify more than 255 break or continue statements in a loop. Moreover, you should not nest more than 255 do-while statements.
DEFINE
{
integer WINH,count,length;
float SLEEP_TIME=0.5;
string s1,s2;
integer i,sloop_cnt = 0;
integer sloop_max = 30;
}
...
...
do
AIT_LogMessage("Searching for Active windows");
if (AIT_FocusWindow("Installable Software", "#32770",0.0) > 0)
if(AIT_FocusWindow("Unpacking Installable Software...", "#32770", 0.0) > 0)
AIT_LogMessage("Unpacking Installable Software... is opened");
sloop_cnt= 0;
AIT_Sleep(SLEEP_TIME);
endif;
endif;
AIT_Sleep(SLEEP_TIME);
sloop_cnt = sloop_cnt + 1;
while ( sloop_cnt < sloop_max);
...
...