2021 6.1 淘宝自动领猫币
一、auto.js
先下载auto.js,自行百度
二、创建js文件
一个txt文件,加上内容后,后缀改为.js
js文件内容,底部自取
三、导入auto. js中
四、打开淘宝任务页面
五、启动auto. js,运行脚本,在切回淘宝页面,等待结束
auto.waitFor();
var height = device.height;
var width = device.width;
toast("\n设备宽" + width + "\n" + "设备高" + height + "\n" + "手机型号" + device.model + "\n安卓版本" + device.release)
setScreenMetrics(width, height);
toast("设备高"+height);
autoplay();
function swipe25s(act){
if(textContains(act).exists())
return 1;
return 0;}
function swipe21s(act){
if(textContains(act).exists()){
for(var i = 0; i < 11;i++)
{
toast("存在" + act);
textContains(act).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);
if(textContains("完成").exists()){
back();
} else {
sleep(2200);
back();
}
sleep(1600);
}}
toast("完成[" + act + "]检测");
sleep(2000);
}
function swipe23s(act){
while(textContains(act).exists()){
toast("存在" + act);
textContains(act).findOne().click();
swipe21s("逛店");
var i = swipe25s("任务完成");
if(i == 1){back();break;}
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);
if(textContains("完成").exists()){
back();
} else {
sleep(2200);
back();
}
sleep(1600);
}
toast("完成[" + act + "]检测");
sleep(2000);
}
function swipe22s(act){
while(textContains(act).exists()){
toast("存在" + act);
textContains(act).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);
if(textContains("完成").exists()){
back();
} else {
sleep(2200);
back();
}
sleep(1600);
}
toast("完成[" + act + "]检测");
sleep(2000);
}
function autoplay(){
toast("5s后开始");
sleep(5000);
toast("开始");
if(textEndsWith("签到").exists()){
textEndsWith("签到").findOne().click();
sleep(1600);
toast("签到成功");
}
sleep(2000);
toast("完成[签到]检测");
swipe23s("去浏览");
for(var n=0;n<2;n++) {swipe22s("去搜索");
swipe22s("去完成");}
swipe22s("去逛逛");
toast("结束");
}