Попробуй так
Код
--lua
math.randomseed(os.clock())
local handle = findwindow('внешний, версия: 33.0')
if handle then
workwindow(handle[1][1])
showwindow(handle[1][1])
windowpos(1, 1, 1366, 768)
else
log('Окно не найдено')
stop_script()
end
while color(826, 364, 'abs') ~= 15201787 or color(826, 364, 'abs') ~= 75990647 do
wait(500 + math.random(200))
end
if color(862, 356, 'abs') == 6726074 or color(862, 352, 'abs') == 13349242 or color(852, 360, 'abs') == 5465218 then
wait(300 + math.random(200))
left(862, 352, 'abs')
wait(570 + math.random(200))
left(1018, 375, 'abs')
end