最近抖音有刷视频送红包活动,忙里偷闲写了个自动刷视频的脚本,因为抖音刷视频任务不记录观看历史,所以为了节约流量,两个视频来回切换就行,不过不会去获取视频时长,所以先设置观看时间为20s,过段时间再补上
auto
.waitFor();
var height
= device
.height
;
var width
= device
.width
;
toast("\n设备宽" + width
+ "\n" + "设备高" + height
+ "\n" + "手机型号" + device
.model
+ "\n安卓版本" + device
.release
)
setScreenMetrics(width
, height
);
toast("设备高"+height
);
i
=0;
while(i
<1000){
swipe(width
/ 2, height
- 500, width
/ 2, 0, 500);
sleep(20000);
swipe(width
/ 2, height
* 0.2, width
/ 2, height
* 0.9, 500);
sleep(20000);
i
++;
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-2627.html