基于Auto.Js脚本自动刷淘宝双十二能量
autojs吧
全部回复
仅看楼主
level 2
Neo_Jia 楼主
var height = device.height;
var width = device.width;
if (text("签到").exists()) {
text("签到").findOne().click();
sleep(1600);
toast("签到成功")
}
sleep(1500);
while (textContains("去浏览").exists()) {
toast("存在去浏览");
textContains("去浏览").find().forEach(function(o) {
text_str = o.text()
text_str = text_str.match(/\d+\/\d+/g).join()
click_cnt = parseInt(text_str.match(/\d+/g));
goal_cnt = parseInt(text_str.match(/\/\d+/g).join().replace("/", ""));
log(click_cnt, goal_cnt)
if (click_cnt != goal_cnt) {
toast("找到了");
o.click();
sleep(1500);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(2500);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(15000);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(8000);
back();
sleep(1500);
}
})
}
while (textContains("去搜索").exists()) {
toast("存在去搜索");
textContains("去搜索").find().forEach(function(o) {
text_str = o.text()
text_str = text_str.match(/\d+\/\d+/g).join()
click_cnt = parseInt(text_str.match(/\d+/g));
goal_cnt = parseInt(text_str.match(/\/\d+/g).join().replace("/", ""));
log(click_cnt, goal_cnt)
if (click_cnt != goal_cnt) {
toast("找到了");
o.click();
sleep(1500);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(2500);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(15000);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(8000);
back();
sleep(1500);
}
})
}
toast("请在能量中心开始运行,需要自行开始和停止脚本");
2019年12月01日 11点12分 1
level 2
Neo_Jia 楼主
代码来自——吾爱破解https://www.52pojie.cn/thread-1065883-1-1.html
2019年12月01日 11点12分 2
level 1
有没有APP呀?
2019年12月01日 11点12分 3
level 1
谢谢大佬
我自己改了半天双十一那个代码没改成功 在贴吧没想到能搜到
2019年12月01日 14点12分 4
level 1
为什么我的不能运行啊
2019年12月01日 14点12分 5
level 1
请问一下手机上运行的这个app叫做什么呀
2019年12月01日 15点12分 6
auto.js
2019年12月01日 17点12分
level 3
謝謝大佬
2019年12月01日 17点12分 7
level 1
安装提示这个,说会记录密码是真的嘛
2019年12月02日 04点12分 9
level 2
没有反应
2019年12月02日 07点12分 10
level 1
谢谢
2019年12月02日 09点12分 11
level 2
怎么用呀求
2019年12月02日 10点12分 12
level 2
app不会用呀
2019年12月02日 11点12分 13
level 1
安卓7.0以上才行,我透
2019年12月02日 11点12分 14
level 2
显示有错误啊
2019年12月02日 11点12分 15
level 5
牛逼
2019年12月02日 14点12分 16
1 2 尾页