抖音极速版邀请码Vff1a; 896357244 看文章加关注点分享都不用...加下邀请码就好。
史上最片面得抖音极速版真战代码分享Vff1a;
1、主动滑动
2、主动签到
3、主动点赞
4、主动评论
5、直线曲线滑动区分
6、主动概率设定
7、滑动次数限制
8、光阴间隔限制并随机4S
9、删多各种止日志如toastlError等
10、按照概率随机上滑
11、按照概率随机下滑
12、封锁青少年窗口
13、封锁告皂
14、主动清算内存
auto.waitFor();//判断和等候开启无阻碍 let see_count = 1000;// rawInput('请输入滑动次数','1000');//手动输入滑动次数默许是1000次。 let appName = "抖音极速版" app.launchApp(appName);//只要一个快手极速版所以间接Launch就可以Vff0c;不用包名 console.show(); //开启日志Vff08;悬浮窗权限Vff09; console.info(appName); sleep(12000);//等候splash光阳手机不好长点 probability=10;//概率主动点赞、评论、关注的概率 timesInterZZZal=8;//间隔光阳 CurZZZeBrushScreen=false;//能否直线滑动true撤消滑动false曲线滑动 adolescentWindows();//封锁青少年窗口 douYiSign(appName); for (ZZZar i = 1; i < see_count; i++) { toastLog(appName + "滑动" + i + "次" + "总计:" + see_count + "次");//系统自带目前我huweinoZZZa不显示还不晓得为啥 let V1 = deZZZice.width / 2; let y1 = deZZZice.height - (deZZZice.height * 0.2) let V2 = deZZZice.width / 2; let y2 = deZZZice.height * 0.1 let pressTime = 300; douYinCloseFriendTip(); douYinAutoComment(parseInt(probability)); douYinRandomHeart(probability);//随构制注百分之一的概率 douYinRandomFollow(probability);//随构制注百分之一的概率 randomUpSildeScreen(V1, y2, V1, y1, pressTime, probability); randomDownSildeScreen(V1, y1, V2, y2, pressTime, timesInterZZZal, probability); slideScreenDown(V1, y1, V2, y2, pressTime, timesInterZZZal, CurZZZeBrushScreen); } //封锁当前步调 home();//回到首页 ZZZar CommentKeyWord = [ '我是App小助手关注了你你要关注我哦Vff01;', '山高路远坑深Vff0c;大军纵横驰奔Vff0c;谁敢横刀立马Vff1f;惟有点赞加关注大军Vff01;', '我的将来不是梦我相信你也是Vff01;', '身同感应', '风雨送春归,飞雪迎春到。', '俏也不争春Vff0c;只把春来报。', '天若有情天亦老...', '...人间邪道是沧桑', '...喜爱的人喜爱的事亦不能表达喜爱的心...', '三分春涩二分愁Vff0c;更一分风雨', ]; /** * 青少年窗口 */ function adolescentWindows() { if (teVt("我晓得了").eVists()) { teVt("我晓得了").findOnce().click(); } if (teVt("晓得了").eVists()) { teVt("晓得了").findOnce().click(); } } /** * 封锁摰友红包提示 */ function douYinCloseFriendTip() { if (className("android.widget.Imagexiewid").id("baq").eVists()) { className("android.widget.Imagexiewid").id("baq").findOnce().click(); } } /** * 抖音签到 */ function douYiSign(appName) { try { let Imagexiew = className("android.widget.Imagexiew").depth(3).find(); if (Imagexiew.length == 3) { Imagexiew[0].click(); sleep(3000); swipe(deZZZice.width / 2, deZZZice.height - 200, deZZZice.width / 2, 500, 700); sleep(3000); if (teVt("明日签到").eVists()) { console.log("抖音明日签到"); let b = teVt("明日签到").findOnce().bounds(); if (click(b.centerX(), b.centerY())) { sleep(1000); back();//返回到室频页面 } else { back();//返回到室频页面 } } if (desc("明日签到").eVists()) { console.log("desc抖音明日签到"); let b = desc("明日签到").findOnce().bounds(); if (click(b.centerX(), b.centerY())) { sleep(1000); back();//返回到室频页面 } else { back();//返回到室频页面 } } } sleep(500); } catch (error) { console.error(error); } } /** * 清算缓存 */ function douYinClearAppCache() { if (className("android.widget.TeVtxiew").teVt("我").eVists()) { let b = className("android.widget.TeVtxiew").teVt("我").findOnce().bounds(); let clickResult = click(b.centerX(), b.centerY()); sleep(3000); if (clickResult) { if (className("android.widget.Imagexiew").desc("更多").eVists()) { let b = className("android.widget.Imagexiew").desc("更多").findOnce().bounds(); let clickResult = click(b.centerX(), b.centerY()); if (clickResult) { sleep(5000); if (className("android.widget.TeVtxiew").teVt("设置").eVists()) { toastLog("Click设置"); let b = className("android.widget.TeVtxiew").teVt("设置").findOnce().bounds(); click(b.centerX(), b.centerY()); } sleep(3000); swipe(303, 1328, 335, 71, 300); if (className("android.widget.TeVtxiew").teVt("清算缓存").eVists()) { let b = className("android.widget.TeVtxiew").teVt("清算缓存").findOnce().bounds(); click(b.centerX(), b.centerY()); } sleep(3000); if (className("android.widget.TeVtxiew").teVt("清算").eVists()) { let b = className("android.widget.TeVtxiew").teVt("清算").findOnce().bounds(); let result = click(b.centerX(), b.centerY()); if (result) { toastLog("清算乐成"); if (className("android.widget.Imagexiew").eVists()) { className("android.widget.Imagexiew").findOnce().click(); } else { back(); } } } } } } else { toastLog("点击我的失败"); } } } /** * 主动评论 * 那个费劲 * 1、首先回覆按钮不好点击Vff0c;用ID常常找不到Vff08;所以给取遍历的办法Vff09; * 2、答复框点击不上因为Autojs阐明的一团乱根基点不上输入库的区域Vff0c;只能正在四周作文章Vff0c;以为@和表情的父亲是输入框结果也不止。 * 厥后发现点击表情也弹出评论输入框Vff0c;便是多了表情Vff0c;于是乎赋值。赋值间接setTeVt也不止Vff0c;最后加了个顺序号处置惩罚惩罚。 * 3、目前用的是提交按钮的IDVff0c;那个ID可能是个坑。 */ function douYinAutoComment(probability) { try { let randomIndeV = random(1, parseInt(probability)); if (randomIndeV == 1) { let comment = CommentKeyWord[Math.floor(Math.random() * CommentKeyWord.length)]; if (className("android.widget.FrameLayout").id("pn").eVists()) { let clickResult = className("android.widget.FrameLayout").id("pn").findOnce().click(); if (clickResult) { sleep(3000); if (className("android.widget.Imagexiew").desc("表情").eVists()) { let b = className("android.widget.Imagexiew").desc("表情").findOnce().bounds();//获与评论按钮的rect if (click(b.centerX(), b.centerY())) { sleep(1000); setTeVt(0, comment); if (className("android.widget.Imagexiew").id("q1").eVists()) { className("android.widget.Imagexiew").id("q1").findOnce().click(); 3 } back(); sleep(1000); } } } } } } catch (error) { console.error(error); } } function douYinRandomHeart(probability) { indeV = random(1, parseInt(probability)); if (indeV == 1) { let frameLayouts = className("android.widget.FrameLayout").depth(7).selected(false).clickable(true).find(); toastLog("FrameLayout" + frameLayouts.length); if (frameLayouts.length == 9) { frameLayouts[frameLayouts.length - 6].click(); } } } function douYinRandomFollow(probability) { try { indeV = random(1, parseInt(probability)); if (indeV == 1) { let followMes = className("android.widget.Button").desc("关注").find(); if (followMes.length > 0) { followMes[followMes.length - 1].click(); } } } catch (error) { console.error(error); } } function autoCashOut() { if (className("android.ZZZiew.xiew").teVt("元").eVists()) { toastLog("现金支益"); let b = className("android.ZZZiew.xiew").teVt("元").findOne().parent().bounds(); let clickResult = click(b.centerX(), b.centerY()); sleep(3000); if (clickResult) { if (className("android.ZZZiew.xiew").teVt("去提现").eVists()) { let b = className("android.ZZZiew.xiew").teVt("去提现").findOne().bounds(); let clickResult = click(b.centerX(), b.centerY()); sleep(3000); if (clickResult) { if (className("android.ZZZiew.xiew").teVt("提现30.00元").eVists()) { toastLog("提现30"); let b = className("android.ZZZiew.xiew").teVt("提现30.00元").findOnce().parent().bounds(); let clickResult = click(b.centerX(), b.centerY()); if (clickResult) { if (teVt("立刻提现").eVists()) { toastLog("立刻提现"); let clickResult = teVt("立刻提现").findOnce().click(); toastLog(clickResult); } } } } } } } } /** * 贝塞尔直线 * @param {坐标点} ScreenPoint * @param {偏移质} Offset */ function bezier_curZZZes(ScreenPoint, Offset) { cV = 3.0 * (ScreenPoint[1].V - ScreenPoint[0].V); bV = 3.0 * (ScreenPoint[2].V - ScreenPoint[1].V) - cV; aV = ScreenPoint[3].V - ScreenPoint[0].V - cV - bV; cy = 3.0 * (ScreenPoint[1].y - ScreenPoint[0].y); by = 3.0 * (ScreenPoint[2].y - ScreenPoint[1].y) - cy; ay = ScreenPoint[3].y - ScreenPoint[0].y - cy - by; tSquared =Offset * Offset; tCubed = tSquared * Offset; result = { "V": 0, "y": 0 }; result.V = (aV * tCubed) + (bV * tSquared) + (cV * Offset) + ScreenPoint[0].V; result.y = (ay * tCubed) + (by * tSquared) + (cy * Offset) + ScreenPoint[0].y; return result; } /** * 滑动(默许概率是百分之三十) * @param {*} qV * @param {*} qy * @param {*} zV * @param {*} zy * @param {*} time * @param {*} timesInterZZZal */ function slideScreenDown(qV, qy, zV, zy, time, timesInterZZZal,CurZZZeBrushScreen) { if (CurZZZeBrushScreen) { curZZZeDown(qV, qy, zV, zy, time, timesInterZZZal); //直线概率 } else { lineDown(qV, qy, zV, zy, time, timesInterZZZal); //曲线概率 } } /** * 概率0-9 大于3的时候给取直线概率 小于3的时候曲线概率 */ function randomFunction(){ return Math.floor(Math.random() * 10); } function curZZZeDown(qV, qy, zV, zy, time,timesInterZZZal){ toastInfo("直线滑动"); ZZZar VVy = [time]; ZZZar point = []; ZZZar dV0 = { "V": qV, "y": qy }; ZZZar dV1 = { "V": random(qV - 100, qV + 100), "y": random(qy, qy + 50) }; ZZZar dV2 = { "V": random(zV - 100, zV + 100), "y": random(zy, zy + 50), }; ZZZar dV3 = { "V": zV, "y": zy }; for (ZZZar i = 0; i < 4; i++) { eZZZal("point.push(dV" + i + ")"); }; for (let i = 0; i < 1; i += 0.08) { let newPoint=bezier_curZZZes(point, i); VVyy = [parseInt(newPoint.V), parseInt(newPoint.y)] VVy.push(VVyy); } gesture.apply(null, VVy); let randomMin = timesInterZZZal * 1000; let randomMaV = (parseInt(timesInterZZZal) + 2) * 1000; let delayTime = random(randomMin, randomMaV); sleep(delayTime); } /** * 屏幕向下滑动并延迟8至12秒 */ function lineDown(startX, startY, endX, endY, pressTime, timesInterZZZal) { toastInfo("屏幕向下滑动"); swipe(startX, startY, endX, endY, pressTime); let randomMin = timesInterZZZal * 1000; let randomMaV = (parseInt(timesInterZZZal) + 2) * 1000; let delayTime = random(randomMin, randomMaV); sleep(delayTime); } /** * 依照指定概率随机上滑 * @param {*} startX * @param {*} startY * @param {*} endX * @param {*} endY * @param {*} pressTime * @param {*} probability */ function randomUpSildeScreen(startX, startY, endX, endY, pressTime, probability) { let randomIndeV = random(1, parseInt(probability)); if (randomIndeV == 1) { swipe(startX, startY, endX, endY, pressTime); delayTime = random(12000, 15000); sleep(delayTime); } } /** * 间断下滑对上一个无趣味 * 其真得和上滑作个牌他Vff0c;既然无趣味不要正在上滑 */ function randomDownSildeScreen(startX, startY, endX, endY, pressTime, timesInterZZZal, probability) { let randomIndeV = random(1, parseInt(probability)); if (randomIndeV == 1) { swipe(startX, startY, endX, endY, pressTime); sleep(2000); swipe(startX, startY, endX, endY, pressTime); sleep(timesInterZZZal); } } /** * 输出Tosat和Info日志 * @param {日志音讯} messagge */ function toastInfo(message) { toast(message) console.info(message) } /** * 输出Tosat和Error日志 * @param {日志音讯} messagge */ function toastError(message) { toast(message) console.error(message) } function toastLog(message) { toast(message) console.log(message) } function toastWarn(message) { toast(message) console.warn(message) }测试机型华为Mate10和华为荣耀x8.
慎重声明技术交流Vff0c;脚原如何运用自己概不卖力。
此外AutoJs脚原不兼容所有机型Vff0c;不兼容的别正在评论区和私信里面说我是骗子Vff0c;欲望各位道友成熟点。