GETSCREEN
IF_PIXEL_IN(456,435,501,464,2110524)
$var1= $_return1
$var2= $_return2
WHILE(PXL($var1,$var2)= 2110524)
WAITMS(RND(88, 99))
keyDown(71)
WAITMS (RND(120, 150))
keyUp(71)
WAITMS (RND(250, 350))
keyDown(72)
WAITMS (RND(180, 280))
keyUp(72)
GETSCREEN
END_CYC
WAITMS (RND(300, 400))
KEYPRESS(32)
waitms (RND(1200, 1300))
KEYSTRING("tt")
waitms (RND(1300, 1400)//вот до вот этого момента все делаетса ка надо а дальше мне нужно чтоб только посли этого условия переходилок остальным
MOVE(676,445)
WAITMS(RND(88, 99))
GETSCREEN
WAITMS(RND(88, 99))
IF_PIXEL_IN(601,425,756,452,3299377)
WAITMS (RND(200, 300))
DBLCLICK($_return1, $_return2)
WAITMS (RND(300, 400))
KEYPRESS(32)
waitms (RND(1200, 1300))
KEYSTRING("tt")
waitms (RND(1300, 1400)
END_IF
WAITMS (RND(300, 400))
MOVE(329,687)
WAITMS(RND(500, 600))
GETSCREEN
IF_PIXEL_IN(276,665,372,719,744325)
WAITMS(RND(888, 999))
LCLICK($_return1, $_return2)
WAITMS(RND(40, 100))
DBLCLICK(417+RND(-3,3),214+RND(-3,3))
DBLCLICK(460,389+RND(-8,6))
WAITMS(RND(40, 100))
END_IF
MOVE(624,397)
WAITMS(RND(88, 99))
GETSCREEN
WAITMS(RND(88, 99))
IF_PIXEL_IN(609,383,650,410,4085572)
WAITMS (RND(200, 300))
DBLCLICK($_return1, $_return2)
WAITMS (RND(300, 400))
KEYPRESS(32)
waitms (RND(1200, 1300))
KEYSTRING("tt")
waitms (RND(1300, 1400)
END_IF//но оно ихи пропускает а если писать ка в 2 примере
END_IF
2 пример :
GETSCREEN
IF_PIXEL_IN(664,441,683,461,2900037)
$var1= $_return1
$var2= $_return2
WHILE(PXL($var1,$var2)= 2900037)
WAITMS(RND(88, 99))
keyDown(71)
WAITMS (RND(280, 380))
keyUp(71)
WAITMS (RND(150, 200))
keyDown(72)
WAITMS (RND(280, 380))
keyUp(72)
GETSCREEN
END_CYC
WAITMS (RND(300, 400))
KEYPRESS(32)
waitms (RND(1200, 1300))
KEYSTRING("tt")
waitms (RND(1300, 1400)
END_IF
WAITMS (RND(300, 400))//так оно преходит сюда даже если первое условие не выполнено(
MOVE(676,445)
WAITMS(RND(88, 99))
GETSCREEN
WAITMS(RND(88, 99))
IF_PIXEL_IN(601,425,756,452,3299377)
WAITMS (RND(200, 300))
DBLCLICK($_return1, $_return2)
WAITMS (RND(300, 400))
KEYPRESS(32)
waitms (RND(1200, 1300))
KEYSTRING("tt")
waitms (RND(1300, 1400)
END_IF
MOVE(329,687)
WAITMS(RND(500, 600))
GETSCREEN
IF_PIXEL_IN(276,665,372,719,744325)
WAITMS(RND(888, 999))
LCLICK($_return1, $_return2)
WAITMS(RND(40, 100))
DBLCLICK(417+RND(-3,3),214+RND(-3,3))
DBLCLICK(664,352+RND(-8,6))
WAITMS(RND(60, 100))
END_IF