function 小吃货忽略() {
if (id(“img_close”).exists()) {
let b = id(“img_close”).findOnce().bounds();
click(b.centerX(), b.centerY());
sleep(2000);
}
// if (id(“tv_rewardButton”).exists()) {
// toastLog(“tv_rewardButton”);
// let b = id(“tv_rewardButton”).findOnce().bounds();
// click(b.centerX(), b.centerY());
// 循环时间()
// }
if (bounds(40, 30, 100, 90).exists()) {
toastLog(“发现bounds”);
sleep(1000);
click(70, 60);
sleep(1000);
}
if (id(“tt_video_ad_close_layout”).exists()) {
let c = id(“tt_video_ad_close_layout”).findOnce().bounds();
click(c.centerX(), c.centerY());
toastLog(“tt_video_ad_close_layout”);
sleep(4000);
}
if (id(“tt_video_ad_close”).exists()) {
let c = id(“tt_video_ad_close”).findOnce().bounds();
click(c.centerX(), c.centerY());
toastLog(“tt_video_ad_close”);
sleep(4000);
}
if (text(“关闭广告”).exists()) {
let b = text(“关闭广告”).findOnce().bounds();
click(b.centerX(), b.centerY());
sleep(2000);
}
if (text(“拒绝”).exists()) {
text(“拒绝”).click()
toastLog(“拒绝”);
}
if (text(“禁止”).exists()) {
text(“禁止”).click()
toastLog(“禁止”);
}
}
function 小吃货短视频() {
刷新()
home();
sleep(1000);
var a1 = desc(“小吃货短视频”).findOnce();
a1.click();
toastLog(“小吃货短视频初始等待10秒开始”);
sleep(16000);
toastLog(“初始化完成”);
sleep(1000);
小吃货忽略()
sleep(4000);
var t = random(90, 100)
for (var i = 0; i < t; i++) {
toastLog(“小吃货短视频” + i + ‘次’ + “总计:” + t + “次”);
小吃货忽略()
swipe(ww / 2, hh * 0.8, ww / 2, hh * 0.1, 500);
delayTime = random(12000, 30000);
sleep(delayTime);
小吃货忽略()
var ss = random(1, 3);
toastLog(“随机数ss为” + ss);
if (ss == 1) {
click(ww * 0.8, hh * 0.9);
sleep(2000);
小吃货忽略()
click(ww * 0.2, hh * 0.9);
sleep(2000);
}
}
home()
}
小吃货短视频autojs脚本分享
最新推荐文章于 2024-01-08 16:26:42 发布