это Поняла, исправила, то же работает
GETSCREEN
IF(PXL(475,181) = 200070)
LCLICK(RND(475,560),RND(183,188))
WAIT(RND(27,35))
GETSCREEN
IF((PXL(508,181) = 200070)
LCLICK(RND(503,542),RND(183,185))
ELSE
IF(PXL(581,181) = 200070)
LCLICK(RND(582,615),RND(181,187))
ELSE
GETSCREEN
IF(PXL(635,404) = 0)
HALT
ELSE
GETSCREEN
IF_PICTURE_IN (298,680, 352,688, "яблоко.bmp")
WAIT(2)
LCLICK(RND(440,475),RND(110,125))
WAIT(2)
LCLICK(RND(550,590),RND(250,325))
WAIT(2)
LCLICK(RND(715,730),RND(165,180))
WAIT(2)
LCLICK(RND(665,700),RND(100,110))
WAIT(1)
ELSE
GETSCREEN
IF(PXL(453,184) = 1118481)
WAIT(2)
LCLICK(RND(440,475),RND(110,125))
WAIT(2)
LCLICK(RND(550,590),RND(250,325))
WAIT(2)
LCLICK(RND(715,730),RND(165,180))
WAIT(2)
LCLICK(RND(665,700),RND(100,110))
WAIT(1)
ELSE
GETSCREEN
IF_PICTURE_IN (239,681, 319,688, "слива.bmp")
HALT
END_IF
WAIT(RND(2,10))
но будет ли так работать....
GETSCREEN
IF(PXL(475,181) = 200070)
LCLICK(RND(475,560),RND(183,188))
WAIT(RND(27,35))
GETSCREEN
IF((PXL(508,181) = 200070)
LCLICK(RND(503,542),RND(183,185))
ELSE
IF(PXL(581,181) = 200070)
LCLICK(RND(582,615),RND(181,187))
ELSE
GETSCREEN
IF(PXL(635,404) = 0)
HALT
ELSE
GETSCREEN
IF_PICTURE_IN (298,680, 352,688, "яблоко.bmp")
WAIT(2)
LCLICK(RND(440,475),RND(110,125))
ELSE
GETSCREEN
IF_PICTURE_IN (474,238, 681,257, "Дыня.bmp")
LCLICK($_return1, $_return2)
WAIT(2)
LCLICK(RND(715,730),RND(165,180))
WAIT(2)
LCLICK(RND(665,700),RND(100,110))
WAIT(2)
ELSE
GETSCREEN
IF(PXL(453,184) = 1118481)
WAIT(2)
LCLICK(RND(440,475),RND(110,125))
WAIT(2)
LCLICK(RND(550,590),RND(250,325))
WAIT(2)
LCLICK(RND(715,730),RND(165,180))
WAIT(2)
LCLICK(RND(665,700),RND(100,110))
WAIT(1)
ELSE
GETSCREEN
IF_PICTURE_IN (239,681, 319,688, "слива.bmp")
HALT
END_IF
WAIT(RND(2,10))
И мложно поставить условие что бы рандомно кликал по картинке "Дыня"?