Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference
The for-next statement executes the expression repeatedly until the condition becomes false. The optional expression supported in the for-next statement allows you to initialize or change a value during for-next statement execution.
Typically, the number of times a loop is repeated depends on the counter.
for ( [initialization-expression] ; [condition-expression] ; [loop-expression] )
expression-1;
expression-2;
next;
You should not nest more than 255 for-next structures.
DEFINE
{
integer WINH,count,length;
float SLEEP_TIME=0.5;
string s1,s2;
integer i,sloop_cnt = 0;
integer sloop_max = 30;
}
...
...
sloop_cnt=1;
AIT_LogMessage("Searching for Active windows - For");
for(; sloop_cnt < sloop_max ;sloop_cnt = sloop_cnt + 1)
if (AIT_FocusWindow("Unpacking", "#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);
next;
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
Copyright, patent, trademark, and other intellectual property rights related to the "TMEng.dll" file are owned exclusively by Trend Micro Incorporated.