Загрузка данных
$swipe_down_start_x = 1970 // X координата начала свайпа
$swipe_down_start_y = 1100 // Y координата начала свайпа
$swipe_down_start_low_y = 1100 // Y координата начала свайпа
$swipe_down_end_low_y = 800 // Y координата конца свайпа
$swipe_down_end_x = 1970 // X координата конца свайпа
$swipe_down_end_y = 190 // Y координата конца свайпа
$swipe_down_duration = 1 // Длительность свайпа с
$swipe_up_start_x = 1970 // X координата начала свайпа
$swipe_up_start_y = 190 // Y координата начала свайпа
$swipe_up_end_x = 1970 // X координата конца свайпа
$swipe_up_end_y = 855 // Y координата конца свайпа
$swipe_up_duration = 1 // Длительность свайпа с
$y1 = 560
$y2 = 868
$y3 = 875
$y4 = 900
$y5 = 885
$y6 = 650
$y7 = 855
$x_all_start = 1897
$x_all_stop = 2379
$x1_end = 2090
$x1_start = 2260
$x2_end = 2090
$x2_start = 2260
$x3_end = 2075
$x3_start = 2250
$x4_end = 2075
$x4_start = 2250
$x5_end = 2075
$x5_start = 2290
$x6_end = 2075
$x6_start = 2320
$x7_end = 2020
$x7_start = 2320
//WAIT(1)
// ------------ 1 ряд
$y_current = $y1
$x_current = $x_all_start
$x_end = $x1_end
while ($x_current < $x_end)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
$x_current = $x1_start
while ($x_current < $x_all_stop)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
// ------------ 2 ряд
$y_current = $y2
$x_current = $x_all_start
$x_end = $x2_end
while ($x_current < $x_end)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
$x_current = $x2_start
while ($x_current < $x_all_stop)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
logwrite("low swipe down")
$loop = 0
while ($loop < 1)
LDOWN($swipe_down_start_x, $swipe_down_start_low_y)
WAIT($swipe_down_duration)
MOVE($swipe_down_end_x, $swipe_down_end_low_y)
LUP($swipe_down_end_x, $swipe_down_end_low_y)
// WAIT(1) // Небольшая пауза после свайпа
inc($loop)
END_CYC
wait(1)
//logwrite("big swipe down")
//$loop = 0
//while ($loop < 1)
// LDOWN($swipe_down_start_x, $swipe_down_start_y)
// WAIT($swipe_down_duration)
// MOVE($swipe_down_end_x, $swipe_down_end_y)
// LUP($swipe_down_end_x, $swipe_down_end_y)
// WAIT(1) // Небольшая пауза после свайпа
// inc($loop)
//END_CYC
//wait(1)
// ------------ 3 ряд
$y_current = $y3
$x_current = $x_all_start
$x_end = $x3_end
while ($x_current < $x_end)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
$x_current = $x3_start
while ($x_current < $x_all_stop)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
logwrite("low swipe down")
$loop = 0
while ($loop < 1)
LDOWN($swipe_down_start_x, $swipe_down_start_low_y)
WAIT($swipe_down_duration)
MOVE($swipe_down_end_x, $swipe_down_end_low_y)
LUP($swipe_down_end_x, $swipe_down_end_low_y)
// WAIT(1) // Небольшая пауза после свайпа
inc($loop)
END_CYC
wait(1)
// ------------ 4 ряд
$y_current = $y4
$x_current = $x_all_start
$x_end = $x4_end
while ($x_current < $x_end)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
$x_current = $x4_start
while ($x_current < $x_all_stop)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
logwrite("low swipe down")
$loop = 0
while ($loop < 1)
LDOWN($swipe_down_start_x, $swipe_down_start_low_y)
WAIT($swipe_down_duration)
MOVE($swipe_down_end_x, $swipe_down_end_low_y)
LUP($swipe_down_end_x, $swipe_down_end_low_y)
// WAIT(1) // Небольшая пауза после свайпа
inc($loop)
END_CYC
wait(1)
// ------------ 5 ряд
$y_current = $y5
$x_current = $x_all_start
$x_end = $x5_end
while ($x_current < $x_end)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
$x_current = $x5_start
while ($x_current < $x_all_stop)
LCLICK($x_current, $y_current)
inc($x_current, 5)
END_CYC
WAIT(1)
$loop = 0
while ($loop < 1)
LDOWN($swipe_up_start_x, $swipe_up_start_y)
WAIT($swipe_up_duration)
MOVE($swipe_up_end_x, $swipe_up_end_y)
LUP($swipe_up_end_x, $swipe_up_end_y)
// WAIT(1) // Небольшая пауза после свайпа
inc($loop)
END_CYC
wait(1)
wait(1)
//// ------------ 6 ряд
//$y_current = $y6
//$x_current = $x_all_start
//$x_end = $x6_end
//while ($x_current < $x_end)
// LCLICK($x_current, $y_current)
// inc($x_current, 5)
//END_CYC
//WAIT(1)
//$x_current = $x6_start
//while ($x_current < $x_all_stop)
// LCLICK($x_current, $y_current)
// inc($x_current, 5)
//END_CYC
//WAIT(1)
//// ------------ 7 ряд
//$y_current = $y7
//$x_current = $x_all_start
//$x_end = $x7_end
//while ($x_current < $x_end)
// LCLICK($x_current, $y_current)
// inc($x_current, 5)
//END_CYC
//WAIT(1)
//$x_current = $x7_start
//while ($x_current < $x_all_stop)
// LCLICK($x_current, $y_current)
// inc($x_current, 5)
//END_CYC
//WAIT(1)
$loop = 0
while ($loop < 15)
LDOWN($swipe_up_start_x, $swipe_up_start_y)
WAIT($swipe_up_duration)
MOVE($swipe_up_end_x, $swipe_up_end_y)
LUP($swipe_up_end_x, $swipe_up_end_y)
// WAIT(1) // Небольшая пауза после свайпа
inc($loop)
END_CYC
wait(1)
wait(1)