while (条件)
式1;
式2;
loop;
なお,ネストするwhileループの数は,255以内に抑えてください。
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("アクティブウィンドウの検索");
if (AIT_FocusWindow("アンパック中...", "#32770",0.0) > 0)
if(AIT_FocusWindow("インストールするソフトウェアをアンパック中...", "#32770", 0.0) > 0)
AIT_LogMessage("インストールするソフトウェアをアンパック中... が開かれました");
sloop_cnt= 0;
AIT_Sleep(SLEEP_TIME);
endif;
endif;
AIT_Sleep(SLEEP_TIME);
sloop_cnt = sloop_cnt + 1;
loop;