1
Общие вопросы / Re: Странное поведение скрипта
« on: September 05, 2014, 11:47:47 PM »
Я заметил ошибку по поводу $err и вынес за if ее
а в чем в кеустринге проблема?
а в чем в кеустринге проблема?
Добавлена тема оформления "Clickermann" для кода с подсветкой синтаксиса. Выбирается из выпадающего списка "Код" (рядом с "цвет", "размер" и "шрифт") в режиме редактирования поста. Либо просто BB-тегом "code=clickermann"
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
if ($err = 3)
GETSCREEN
IF_PICTURE_IN (0,0,$_xmax, $_ymax,"next.bmp")
LOGWRITE ("nextScreen: ", $_return1, " ", $_return2)
lclick($_return1 + 5, $_return2 + 5)
WAIT(1)
$err = 0
END_IF
#name "search in Yandex"
$zapros = "obzor"
$page_all = 50
$brawser = "chrome.exe"
SUB(find)
KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#f)
WAITMS (50)
KEYUP (#f)
KEYUP (#CTRL)
WAITMS(500)
KEYSTRING ("obzor")
END_SUB
//==============================================================================
LOGCLEAR
EXECUTE("chrome", "--incognito")
WAIT(10)
KEYSTRING ("ya.ru")
KEYPRESS (#ENTER)
WAIT(5)
KEYSTRING ("bzors")
WAITMS(50)
KEYPRESS (#ENTER)
WAIT(5)
FOR($page=0, $page<$page_all)
GETSCREEN
IF_PICTURE_IN (0,0,$_xmax, $_ymax,"somefile.bmp")
LOGWRITE ("NormalScren: ", $_return1, " ", $_return2)
lclick($_return1 + 30, $_return2 + 35)
HALT
else
KEYPRESS (#PAGEDOWN)
END_IF
WAIT(1)
if ($err = 3)
GETSCREEN
IF_PICTURE_IN (0,0,$_xmax, $_ymax,"next.bmp")
LOGWRITE ("nextScreen: ", $_return1, " ", $_return2)
lclick($_return1 + 5, $_return2 + 5)
WAIT(1)
$err = 0
END_IF
LOGWRITE ($err)
END_IF
$err=$err+1
END_CYC
HALT
#name "search in Yandex"
$zapros = "obzor"
$page_all = 50
$brawser = "chrome.exe"
SUB(find)
KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#f)
WAITMS (50)
KEYUP (#f)
KEYUP (#CTRL)
WAITMS(500)
KEYSTRING ("obzor")
END_SUB
//==============================================================================
LOGCLEAR
EXECUTE("chrome", "--incognito")
WAIT(3)
KEYSTRING ("ya.ru")
KEYPRESS (#ENTER)
WAIT(5)
KEYSTRING ("bzors")
KEYPRESS (#ENTER)
WAIT(5)
FOR($page=0, $page<$page_all)
$_return1 = 0
$_return2 = 0
GETSCREEN
IF_PICTURE_IN (0,0,$_xmax, $_ymax,"somefile.bmp")
LOGWRITE ("NormalScren")
END_IF
WAIT(1)
LOGWRITE ($_return1)
LOGWRITE ($_return2)
if ($_return1 > 0)
lclick($_return1 + 30, $_return2 + 35)
HALT
else
KEYPRESS (#PAGEDOWN)
end_if
if ($err = 3)
GETSCREEN
IF_PICTURE_IN (0,0,$_xmax, $_ymax,"next.bmp") END_IF
LOGWRITE ("nextScreen")
LOGWRITE ($_return1)
LOGWRITE ($_return2)
lclick($_return1 + 5, $_return2 + 5)
WAIT(1)
$err = 0
END_IF
$err = $err + 1
LOGWRITE ($err)
END_CYC
HALT