繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
标题:
auto.js天猫自动领猫币
[打印本页]
作者:
forwe
时间:
2019-10-24 13:33
标题:
auto.js天猫自动领猫币
下载地址:
https://www.lanzous.com/i6x2asj
1.
auto.waitFor();
var height = device.height;
var width = device.width;
toast("\n设备宽" + width + "\n" + "设备高" + height + "\n" + "手机型号" + device.model + "\n安卓版本" + device.release)
if (height == 1920) { //设置脚本坐标点击所适合的屏幕宽高。
setScreenMetrics(1080, 1920);
toast("设备高" + height);
lingqu()
} else if (height == 2340) {
setScreenMetrics(1080, 2340);
toast("设备高" + height);
lingqu()
}
else if (height == 2160) {
setScreenMetrics(1080, 2160);
toast("设备高" + height);
}
while (text("去进店").exists()) {
//要支持的动作
toast("存在去进店");
text("去进店").findOne().click();
sleep(2500);
swipe(width / 2, height - 600, width / 2, 0, 500);
sleep(3500);
swipe(width / 2, height - 600, width / 2, 0, 500);
sleep(10000);
swipe(width / 2, height - 600, width / 2, 0, 500);
sleep(9000);
back();
sleep(1000);
}
while (text("去浏览").exists()) {
//要支持的动作
toast("存在去浏览");
text("去浏览").findOne().click();
sleep(1500);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(2500);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(10000);
swipe(width / 2, height - 500, width / 2, 0, 500);
sleep(8000);
back();
sleep(1600);
}
toast("结束");
复制代码
2.
var str = "";
str += "屏幕宽度:" + device.width
str += "\n屏幕高度:" + device.height;
toast("屏幕宽度为"+device.width+" "+"屏幕高度为"+device.height);
sleep(5000)
for(var t=1;t<21;t++){ click(text("去进店").findOne().click())
toast("点击去进店")
sleep(3000)
for(var i=0;i<6;i++){
swipe(device.width / 2, 4*device.height/5, device.width / 2, device.height/5,1000);
sleep(3000)
}
back()
toast("已经逛了"+t+"次")
sleep(3000)
}
复制代码
欢迎光临 Forwe (http://forwe.joinbbs.net/)
Powered by Discuz! 7.2