Как-то так:
#name "aast2012"
// Author: Vint
// Version: 0.1 (13.09.2018)
// Скрипт для Clickermann v4.13.014
$numberstart = 1
$numbermax = 172
$round = 0
//******************************************************************************
SUB(selected2list) // перекидываем массив $selected в $list
UNDEFINE($list)
$size = ARRSIZE($selected)
FOR($i=0, $i < $size)
ARRPUSH($list, $selected[$i])
END_CYC
END_SUB
SUB(authorization, $a_numakk, $win)
UNDEFINE($coord)
IF($win = 0) // логин левого
STRSEPARATE("456:454:424:650", ":", $coord)
ELSE //логин правого
STRSEPARATE("1469:459:1389:657", ":", $coord)
END_IF
LCLICK($coord[0], $coord[1])
FOR($a=0, $a < 10)
KEYPRESS(#BACKSPACE)
WAITMS(20)
END_CYC
KEYSTRING("pooll", 20)
KEYSTRING($a_numakk, 20)
LCLICK($coord[2], $coord[3])
WAIT(2)
END_SUB
SUB(select)
INC($round)
LOGWRITE("Раунд № ", $round, " участников ", ARRSIZE($list))
UNDEFINE($selected)
FOR($i=0, $i < ARRSIZE($list), 2)
$akk0 = $list[$i]
$akk1 = $list[$i+1]
authorization($akk0, 0)
authorization($akk1, 1)
WAIT(6)
LCLICK(838, 586)
WAIT(1)
LCLICK(1827, 667)
WAIT(1)
LCLICK(582, 705)
WAIT(2)
GETSCREEN(797,806,880,833)
COLORMODE(8,797,806,880,833)
IF(PXLCOUNT(797,806,880,833, 16777215) ! 391)
LOGWRITE("выиграш ", $akk0)
ARRPUSH($selected, $akk0)
ELSE
LOGWRITE("выиграш ", $akk1)
ARRPUSH($selected, $akk1)
END_IF
LCLICK(915, 106)
WAIT(2)
LCLICK(1879, 124)
WAIT(2)
END_CYC
END_SUB
//==============================================================================
WAITMS(300)
// формируем начальный массив $list
FOR($i=$numberstart, $i < $numbermax + 1)
ARRPUSH($list, $i)
END_CYC
select()
WHILE(ARRSIZE($selected) > 1)
selected2list()
select()
END_CYC
$superhero = $selected[0]
LOGWRITE("Победитель № ", $superhero)
HALT