После кликов должны быть задержки, чтоб на экране успело что то измениться и уж потом нужно анализировать.
start:
GETSCREEN
IF_PIXEL_IN(628,526,662,552, 0)
LCLICK(500,896)
WAIT(35)
INC($aa, 1)
IF($aa = 14)
LCLICK(688,752)
WAIT(1)
start02:
GETSCREEN
IF_PIXEL_IN(628,526,662,552, 0)
LCLICK(500,896)
WAIT(35)
INC($ff, 1)
IF($ff = 7)
LCLICK(688,752)
WAIT(1)
start03:
GETSCREEN
IF_PIXEL_IN(628,526,662,552, 0)
LCLICK(500,896)
WAIT(35)
INC($dd, 1)
IF($dd = 7)
HALT
END_IF
GOTO(start03)
ELSE
IF_PIXEL_IN(628,526,662,552, 1710844)
LCLICK(500,896)
WAIT(35)
INC($dd, 1)
IF($dd = 7)
HALT
END_IF
GOTO(start03)
ELSE
IF_PIXEL_IN(628,526,662,552, 1551428)
LCLICK(623,743)
WAITMS(30)
LCLICK(623,743)
WAIT(35)
$dd = 0
$ff = 0
$aa = 0
GOTO(start)
END_IF
END_IF
END_IF
END_IF
GOTO(start02)
ELSE
IF_PIXEL_IN(628,526,662,552, 1710844)
LCLICK(500,896)
WAIT(35)
INC($ff, 1)
IF($ff = 7)
LCLICK(688,752)
WAIT(1)
GOTO(start03)
END_IF
GOTO(start02)
ELSE
IF_PIXEL_IN(628,526,662,552, 1551428)
LCLICK(623,743)
WAIT(35)
$ff = 0
$aa = 0
GOTO(start)
END_IF
END_IF
END_IF
END_IF
GOTO (start)
ELSE
IF_PIXEL_IN(628,526,662,552, 1710844)
LCLICK(500,896)
WAIT(35)
INC($aa, 1)
IF($aa = 14)
LCLICK(688,752)
WAIT(1)
GOTO(start02)
END_IF
GOTO (start)
ELSE
IF_PIXEL_IN(628,526,662,552,1551428)
WAIT(35)
$aa = 0
GOTO (start)
END_IF
END_IF
END_IF
HALT