// RECORDED SCRIPT 28.11.2016
// waitms correction
$S_CORR = 0
waitms(100 + $S_CORR)
keyDown(39)
waitms(500 + $S_CORR)
keyUp(39)
waitms(100 + $S_CORR)
keyDown(38)
waitms(500 + $S_CORR)
keyUp(38)
waitms(100 + $S_CORR)
RCLICK(849,525)
waitms(100 + $S_CORR)
LCLICK(849,525)
waitms(2000 + $S_CORR)
GETSCREEN
$count=PXLCOUNT(204,25, 1475,1007, 255)
LOGWRITE("pixel: ", $count)
//pathfinder
if ($count=15077)
$S_CORR = 0
waitms(2345 + $S_CORR)
keyDown(56)
waitms(188 + $S_CORR)
keyUp(56)
waitms(795 + $S_CORR)
lDown(723,558)
waitms(121 + $S_CORR)
lUp(723,558)
waitms(3454 + $S_CORR)
keyDown(56)
waitms(157 + $S_CORR)
keyUp(56)
waitms(316 + $S_CORR)
lDown(755,587)
waitms(136 + $S_CORR)
lUp(755,587)
waitms(2193 + $S_CORR)
keyDown(55)
waitms(158 + $S_CORR)
keyUp(55)
waitms(601 + $S_CORR)
lDown(967,918)
waitms(103 + $S_CORR)
lUp(967,918)
waitms(5238 + $S_CORR)
keyDown(40)
waitms(280 + $S_CORR)
keyUp(40)
waitms(2495 + $S_CORR)
keyDown(37)
waitms(218 + $S_CORR)
keyUp(37)
waitms(4069 + $S_CORR)
keyDown(55)
waitms(158 + $S_CORR)
keyUp(55)
waitms(704 + $S_CORR)
lDown(1211,583)
waitms(118 + $S_CORR)
lUp(1211,583)
waitms(7307 + $S_CORR)
keyDown(37)
waitms(371 + $S_CORR)
keyUp(37)
waitms(2184 + $S_CORR)
keyDown(55)
waitms(126 + $S_CORR)
keyUp(55)
waitms(636 + $S_CORR)
lDown(732,760)
waitms(121 + $S_CORR)
lUp(732,760)
waitms(9556 + $S_CORR)
keyDown(56)
waitms(156 + $S_CORR)
keyUp(56)
waitms(400 + $S_CORR)
lDown(1094,643)
waitms(119 + $S_CORR)
lUp(1094,643)
waitms(5022 + $S_CORR)
keyDown(56)
waitms(158 + $S_CORR)
keyUp(56)
waitms(541 + $S_CORR)
lDown(525,455)
waitms(119 + $S_CORR)
lUp(525,455)
waitms(10977 + $S_CORR)
keyDown(40)
waitms(96 + $S_CORR)
keyUp(40)
waitms(616 + $S_CORR)
keyDown(38)
waitms(218 + $S_CORR)
keyUp(38)
waitms(615 + $S_CORR)
keyDown(40)
waitms(96 + $S_CORR)
keyUp(40)
waitms(1659 + $S_CORR)
keyDown(55)
waitms(97 + $S_CORR)
keyUp(55)
waitms(955 + $S_CORR)
lDown(373,757)
waitms(111 + $S_CORR)
lUp(373,757)
waitms(1081 + $S_CORR)
rDown(453,827)
waitms(56 + $S_CORR)
rUp(453,829)
waitms(144 + $S_CORR)
lDown(455,829)
waitms(128 + $S_CORR)
lUp(455,829)
waitms(944 + $S_CORR)
lDown(334,832)
waitms(104 + $S_CORR)
lUp(334,832)
waitms(847 + $S_CORR)
lDown(362,795)
waitms(144 + $S_CORR)
lUp(362,795)
waitms(840 + $S_CORR)
lDown(354,798)
waitms(120 + $S_CORR)
lUp(354,798)
waitms(1696 + $S_CORR)
keyDown(55)
waitms(128 + $S_CORR)
keyUp(55)
waitms(577 + $S_CORR)
lDown(373,750)
waitms(143 + $S_CORR)
lUp(373,750)
waitms(1817 + $S_CORR)
rDown(727,824)
waitms(88 + $S_CORR)
rUp(727,824)
waitms(560 + $S_CORR)
lDown(731,827)
waitms(103 + $S_CORR)
lUp(731,827)
waitms(712 + $S_CORR)
lDown(779,765)
waitms(112 + $S_CORR)
lUp(779,765)
waitms(760 + $S_CORR)
lDown(809,738)
waitms(121 + $S_CORR)
lUp(809,738)
waitms(679 + $S_CORR)
lDown(815,567)
waitms(120 + $S_CORR)
lUp(815,567)
waitms(801 + $S_CORR)
lDown(831,523)
waitms(95 + $S_CORR)
lUp(831,523)
waitms(1316 + $S_CORR)
keyDown(38)
waitms(282 + $S_CORR)
keyUp(38)
waitms(1627 + $S_CORR)
keyDown(56)
waitms(127 + $S_CORR)
keyUp(56)
waitms(1664 + $S_CORR)
lDown(451,116)
waitms(128 + $S_CORR)
lUp(451,116)
waitms(13329 + $S_CORR)
rDown(608,98)
waitms(54 + $S_CORR)
rUp(608,98)
waitms(537 + $S_CORR)
lDown(616,74)
waitms(144 + $S_CORR)
lUp(616,74)
waitms(3970 + $S_CORR)
waitms(399 + $S_CORR)
waitms(12 + $S_CORR)
keyUp(18)
waitms(0 + $S_CORR)
keyUp(83)
waitms(0 + $S_CORR)
keyUp(164)
end if
halt
Почему начинает исполняться код //pathfinder, когда $count не равно 15077?
UPD. Приписал else, стало работать как надо. Т.е. else обязательно для if()?