хотя вот так наверное правда лучше
DEFINE($d1,0)
DEFINE($d2,0)
DEFINE($d3,0)
DEFINE($d4,0)
DEFINE($d5,0)
DEFINE($d6,0)
DEFINE($d7,0)
DEFINE($u1,0)
DEFINE($u2,0)
DEFINE($u3,0)
DEFINE($u4,0)
DEFINE($u5,0)
DEFINE($u6,0)
DEFINE($u7,0)
THREAD(down, 1)
GETSCREEN
COLORMODE(5)
FOR($d=1,$d<8)
IF_PICTURE_IN (771,268,837,673, STRCONCAT("d",$d,".bmp"), 16777215, $toch)
LCLICK(1169,318)
LOGWRITE ("âíèç ",$d)
SETVAR(STRCONCAT("$d",$d), 1)
WAITMS(50)
SCREENSHOTEX(771,268,837,673, STRCONCAT("d",$d,"_"), 0)
WAIT(90)
else
FOR($u=1,$u<8)
IF_PICTURE_IN (771,268,837,673, STRCONCAT("u",$u,".bmp"), 16777215, $toch)
LCLICK(1174,267)
LOGWRITE ("ââåðõ ",$u)
SETVAR(STRCONCAT("$u",$u), 1)
WAITMS(50)
SCREENSHOTEX(771,268,837,673, STRCONCAT("u",$u,"_"), 0)
WAIT(90)
END_IF
END_CYC
END_IF
END_CYC
WAITMS(100)
end_thread
значительно быстрее спасибо