欢迎访问广东华体会叉车设备有限公司官网!

广东华体会叉车设备有限公司

广东华体会叉车设备有限公司

—— 持续领航 品牌经营 ——

全国服务热线

0193-44307307
15998104446
搜索关键词:  产品样品  搬运坦克车  www.ymwears.cn  as

自动刷淘宝喵币!能不能双十一前追到女神,就看这个小剧本了

来源:华体会官网   发布时间:2021-07-29 00:11nbsp;  点击量:

本文摘要:开源最前线(ID:OpenSourceTop) 猿妹综合整理这几天,双十一的运动有没有把你折腾的不轻呢?如果没有,只有两种可能:一,你没女朋侪;二,你没有女性朋侪,否则你一定会收到如下消息要知道阿里每年都市发放大量红包、种种优惠券和种种相助游戏......而这两天,马爸爸的“ATM”们可都着迷于这些个相助游戏里不行自拔,吾日三省吾身:签到了?做任务了么?升级了么?

华体会官网

华体会官网

开源最前线(ID:OpenSourceTop) 猿妹综合整理这几天,双十一的运动有没有把你折腾的不轻呢?如果没有,只有两种可能:一,你没女朋侪;二,你没有女性朋侪,否则你一定会收到如下消息要知道阿里每年都市发放大量红包、种种优惠券和种种相助游戏......而这两天,马爸爸的“ATM”们可都着迷于这些个相助游戏里不行自拔,吾日三省吾身:签到了?做任务了么?升级了么?:一般我们法式员对这种游戏都是没什么太大兴趣,究竟天天都有找不完的Bug,加不完的班,可是如果在这时候你的女神向你求资助的时候,就你谁人品级你拿的脱手么?所以,法式员怎么能错过这么一个在女神眼前展现专业能力的时候呢,这不,今天猿妹就在GitHub上发现,有法式员写了一个小剧本,可以天天自动做任务,领喵币,这下帮女神盖楼,再也不用担忧品级低了:可以看出来现在这个小剧本还没有引起法式员的注意,一个星星都还没获得(GitHub地址:https://github.com/sleepybear1113/taobaoVisitingVenues)其实,这个剧本并不难,基于auto.js框架来实现,auto.js是一个支持无障碍服务的Android平台上的JavaScript IDE,以控件为基础,能自动运行一些操作,实现悬浮窗录制和运行。所以这个剧本只支持安卓系统。详细的剧本代码如下:let deviceWidth = device.width;let deviceHeight = device.height;function openBeginningBtnItem(delay) { let items = textStartsWith("gif;base64").depth(19).find(); console.log("寻找--领喵币"); if (items.length > 0) { let item = items[items.length - 1]; console.log("点击--领喵币"); clickItemInCenter(item); sleep(delay); return 1; } return -1;}function isOpenBeginning() { let signIn = textContains("签到").findOnce(); if (signIn != null) { console.log("乐成--打开领取中心"); return 1; } return -1;}function ensureOpenBeginning(waitDelay) { if (isOpenBeginning() === -1) { openBeginningBtnItem(waitDelay); } if (isOpenBeginning() === 1) return 1; console.error("失败--打开领取中心"); toast("失败--打开领取中心"); return -1;}function clickItemInCenter(item, time) { if (time == null) time = 50; if (item == null) return; let x = item.bounds().centerX(); let y = item.bounds().centerY(); press(x, y, time);}function goShopping() { let shopping = text("去浏览").findOne(1000); if (shopping == null) { toastLog("竣事--未知问题"); return -1; } console.log("开始浏览..."); clickItemInCenter(shopping); return 1;}function swipeUp() { let x = parseInt(deviceWidth / 2); let duration = 500; let y = [parseInt(deviceHeight * 0.75), parseInt(deviceHeight * 0.25)]; swipe(x, y[0], x, y[1], duration); swipe(x, y[0], x, y[1], duration);}function isFull() { for (let i = 0; i < 10; i++) { if (descContains("已达上限").findOnce() || textContains("已达上限").findOnce()) { console.log("今日已达上限"); return 1; } sleep(1000); } return 0}function waitSwipe() { let swipeAppear; let shoppingFull; for (let i = 0; i < 3; i++) { swipeAppear = desc("滑动浏览得").findOne(1000); if (swipeAppear != null) break; shoppingFull = descContains("已达上限").findOne(1000); if (shoppingFull != null) return 0; console.log("i" + i); } sleep(1000); if (swipeAppear != null) { console.log("开始滑动"); swipeUp(); console.log("等候15s"); sleep(1000 * 16); } else { console.log("slow"); console.log("等候20s"); sleep(1000 * 20); } let shoppingFinish = desc("任务完成").findOne(2000); if (shoppingFinish != null) { console.log("逛完,准备返回"); } else { toastLog("未知逛完,返回"); } return 1;}function browseFinish() { for (let i = 0; i < 10; i++) { let normalFinishDesc = descContains("已获得").findOnce(); let normalFinishText = textContains("已获得").findOnce(); let swipeFinish = desc("任务完成").findOnce(); if (normalFinishDesc != null || swipeFinish != null || normalFinishText != null) { console.log("浏览竣事"); return 0; } sleep(250); } console.log("浏览未知"); return -1;}function judgeWay() { let timeOut = 1000 * 7; let delay = 250; let loops = parseInt(timeOut / delay); for (let i = 0; i < loops; i++) { let swipeAppearDesc = descContains("滑动浏览得").findOnce(); let swipeAppearText = textContains("滑动浏览得").findOnce(); if (swipeAppearDesc != null || swipeAppearText != null) { console.log("已获取到滑动浏览模式"); return 0; } let directBrowseDesc = desc("浏览").findOnce(); let directBrowseText = text("浏览").findOnce(); if (directBrowseDesc != null || directBrowseText != null) { if (descContains("00喵币").findOnce() != null || textContains("00喵币").findOnce() != null) { console.log("已获取到正常浏览模式"); return 1; } } sleep(delay); } console.log("超时"); return -1;}function reopenAgain() { console.log("reopen"); let tbs = id("taskBottomSheet").findOnce(); if (tbs == null) return -1; let close = tbs.child(1); if (close != null) { console.log("关闭"); clickItemInCenter(close); sleep(1000); return ensureOpenBeginning(1000); } return -1;}function runGoShopping() { let isSuccess; for (let i = 0; i < 20; i++) { isSuccess = ensureOpenBeginning(1000); if (isSuccess !== 1) break; isSuccess = goShopping(); let count = 0; while (isSuccess !== 1) { if (reopenAgain() === 1) { isSuccess = 1; break; } if (count++ >= 2) break; } if (isSuccess === -1) break; let st = waitSwipe(); if (st === 0) { toastLog("已达上限,竣事剧本"); return 0; } back(); sleep(1000); } if (isSuccess === 0) { toastLog("正常竣事"); return 0; } else if (isSuccess === -1) { toastLog("异常竣事"); return 1; }}function clickGoBrowse() { let browse = text("去浏览").findOne(1000); if (browse != null) { let guessYouLike = textContains("猜你喜欢").findOnce(); if (guessYouLike != null) { console.log("泛起猜你喜欢"); let pp = browse.parent.bounds().top; let ppp = guessYouLike.parent.parent.bounds().top; if (ppp === pp) { console.log("跳过--猜你喜欢"); let allBrowse = text("去浏览").find(); for (let i = 0; i < allBrowse.length; i++) { let item = allBrowse[i]; if (item.bounds().top !== browse.bounds().top) { browse = item; } } } } console.log("点击--去浏览"); clickItemInCenter(browse); return 1; } return -1;}function runGoBrowse() { let isSuccess = 1; for (let i = 0; i < 40; i++) { isSuccess = ensureOpenBeginning(1000); if (isSuccess !== 1) break; for (let j = 0; j < 3; j++) { isSuccess = clickGoBrowse(); if (isSuccess !== 1) { reopenAgain(); } else break; } if (isSuccess === -1) break; let jw = judgeWay(); sleep(1000); if (jw === 0) swipeUp(); else if (jw === -1) { if (isFull() === 1) { console.log("已达上限"); back(); sleep(2000); reopenAgain(); continue; } console.log("4s"); sleep(1000 * 4); } console.log("15s"); sleep(1000 * 15); let isF = browseFinish(); if (isF === 0) { console.log("浏览竣事,返回"); } else if (isF === -1) { console.log("浏览未正常竣事,返回"); } back(); sleep(2000); }}function removeFile(fileName) { if (files.exists(fileName)) { files.remove(fileName); }}function clearNewScript() { threads.start(function () { removeFile("/sdcard/剧本/淘宝喵币/script.js"); removeFile("/sdcard/剧本/淘宝喵币/version.txt"); toastLog("清除完成"); });}function warning(n) { let items = ["不更新,但还是试试新剧本(不保证能用)", "清除当地下载的新剧本,使用默认剧本", "点击这里下载新APP"]; let ch = dialogs.select("当前新版本不适用于此旧APP,请更新到新APP。

华体会官网

", items, function (index) { if (index >= 0) { if (index === 0) { threads.start(function () { sleep(1000); runRun(n); }); } else if (index === 1) { clearNewScript(); } else if (index === 2) { alert("那里下载的旧APP就去那里下载新APP,我可没心思公布"); } } });}function runRun(n) { sleep(500); let statue = runGoBrowse(); toastLog("去浏览--浏览竣事"); alert("竣事");}function moveFloating(n) { let i = -1; dialogs.confirm("由于需要,请将悬浮窗移动至靠左。", "点击确认表现已完成,直接运行剧本。

n点击取消则手动前去调整。n" + "(中间浏览历程中可能会跳转到淘宝首页举行浏览,此时需要手动再次切回猫铺。)", function (clear) { if (clear) { console.log("直接运行"); i = 1; } else { toastLog("请将悬浮窗移动至靠左"); i = 0; } }); while (i === -1) { slepp(100); } if (i === 1) { runRun(n); }}function runChoose(n) { let currentVersion = app.versionCode; if (currentVersion === 1) { warning(n); } else { moveFloating(n); }}module.exports = runChoose;如果你不懂的话,就直接下载使用,记得开启悬浮窗,然后再切换到淘宝:。


本文关键词:华体会,自动,刷淘,宝喵,币,能不能,双,十一,前,追到

本文来源:华体会-www.gzkesinuo.com

微信二维码 微信二维码
联系我们

电话:0193-44307307
手机:15998104446
Q Q:813931538
邮箱:admin@gzkesinuo.com
联系地址:青海省海北藏族自治州祁连县斯达大楼82号

Copyright © 2008-2021 www.gzkesinuo.com. 华体会科技 版权所有

备案号:ICP备80157775号-8