$ch = 0
WHILE($ch = 0)
GETSCREEN
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "file1.bmp")
LCLICK($_return1, $_return2)
WAITMS(100)
$ch = 1
ELSE
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "file2.bmp")
LCLICK($_return1, $_return2)
WAITMS(100)
ELSE
WAITMS(50)
$ch = 1
END_IF
END_IF
END_CYC
FOR($i=3, $i < 6)
GETSCREEN
IF_PICTURE_IN (0,0, $_xmax,$_ymax, STRCONCAT("file", $i, ".bmp"))
LCLICK($_return1, $_return2)
WAITMS(100)
ELSE
$i = 10
END_IF
END_CYC