当前位置:首页 > Web开发 > 正文

timeGo);sleep(timeNext);i++;}/**如果弹出青少年窗口

2024-03-31 Web开发

环境:安卓7.0以上

auto.waitFor(); app.launchApp('抖音极速版') sleep(4000); youngWin(); newVersion() i = 1; while (true) { toast("滑动" + i + '次') WidthOne = random(300, 800); HeightOne = random(1600, 1800); WidthTwo = random(300, 800); HeightTwo = random(500, 700); timeGo = random(250, 600); timeNext = random(4000, 7000); heartClick(); swipe(WidthOne, HeightOne, WidthTwo, HeightTwo, timeGo); sleep(timeNext); i++; } /**如果弹出青少年窗口,点击 */ function youngWin() { if (youngWin = text("我知道了").exists()) { youngWin.click(); }; } /**随机点赞并休息一秒 */ function heartClick() { index = random(1, 5); if (index == 3) { id('a4o').findOnce().click(); } sleep(1000); } //检测到新版本跳过 function newVersion() { if (newVersion = text("以后再说").exists()) { newVersion.click(); }; } /** * 自动提交评论 * content str 评论内容,,默认为666 */ function autoComment(content = "666") { id('pz').findOnce().click(); sleep(1000); b = id('pz').findOnce().bounds(); sleep(1000); click(b.centerX(), b.centerY()); sleep(1000); setText(content); sleep(1000); click(b.centerX(), b.centerY()); sleep(1000); click(device.width - 80, b.centerY()); sleep(1000); back(); }

autoJS抖音极速版自动刷频

标签:

原文地点:https://www.cnblogs.com/qinsilandiao/p/12128720.html

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32507.html