You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
541 B
26 lines
541 B
start();
|
|
|
|
|
|
function start () {
|
|
auto.waitFor()
|
|
|
|
console.show();
|
|
viewTask();
|
|
}
|
|
|
|
|
|
function nextVideo (x1, y1, x2, y2, duration) {
|
|
swipe(x1, y1, x2, y2, duration)
|
|
delayTime = random(8000, 12000)
|
|
sleep(delayTime) //在视频停留8-12秒
|
|
}
|
|
|
|
function viewTask () {
|
|
for (var i = 1; i < 500; i++) {
|
|
console.log("任务 ", i)
|
|
nextVideo(device.width / 2, device.height * (8 / 9), device.width / 2, device.height * (1 / 4), 150)
|
|
// console.log("下滑!")
|
|
// gesture(400, [520, 2550], [520, 450]);
|
|
sleep(1000);
|
|
}
|
|
}
|