The while-loop statement executes the specified expressions repeatedly until the specified condition becomes false. You have to enclose a condition to be specified with parentheses.
while (condition)
expression-1;
expression-2;
loop;
You should not nest more than 255 while loops.
DEFINE
{
integer WINH,count,length;
float SLEEP_TIME=0.5;
string s1,s2;
integer i,sloop_cnt = 0;
integer sloop_max = 30;
}
...
...
while ( sloop_cnt < sloop_max)
AIT_LogMessage("The active window is being found");
if (AIT_FocusWindow("Unpacking...", "#32770",0.0) > 0)
if(AIT_FocusWindow("Unpacking software to be installed...", "#32770", 0.0) > 0)
AIT_LogMessage("Unpacking software to be installed... is opened");
sloop_cnt= 0;
AIT_Sleep(SLEEP_TIME);
endif;
endif;
AIT_Sleep(SLEEP_TIME);
sloop_cnt = sloop_cnt + 1;
loop;