淘宝618自动领喵币 2020淘宝618理想生活列车自动领喵币js脚本的代码

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

淘宝618自动领喵币 2020淘宝618理想生活列车自动领喵币js脚本的代码

丈二——6   2021-04-22 我要评论

自动收喵币

脚本

//by 丈二
//auto.waitFor();
var height = device.height;
var width = device.width;
var my_taobao = desc("我的淘宝");
var task_door = desc("瓜分10亿");
var task_list = text("做任务,领喵币");

function appRun()
{
 var version = device.release;
 toast("分辨率:"+width+"*"+height+"\n\n安卓"+version);
 sleep(3000);
 launchApp("手机淘宝");
 toast("打开手机淘宝中...");
 sleep(3000);
}
function swipeChange(move_length,duration,sleep_time)
{
 swipe(width / 2 , height - move_length , width / 2,0,duration); 
 sleep(sleep_time);
}

function for_jump()
{
 if(my_taobao.exists())
 {
 my_taobao.click();
 sleep(2000);
 }
 if(task_door.exists())
 {
 task_door.click();
 sleep(8000);
 }
 if(task_list.exists())
 {
 task_list.click();
 sleep(2000);
 }
}

function autoSwipe_Another(button_text)
{
 textContains(button_text).findOne().click();
 sleep(1000);
 toast("完成"+"["+button_text+"]"+"任务");
 sleep(1000);
}

function autoSwipe(button_text)
{
 while(textContains(button_text).exists())
 {
 if(button_text=="去兑换")
 {
  autoSwipe_Another(button_text);
  continue;
 }
 toast(button_text + "正在进行");
 textContains(button_text).findOne().click();
 swipeChange(600,500,1000);
 swipeChange(1000,1500,1000);
 swipeChange(1500,1500,5000);
 swipeChange(800,1000,6000);
 swipeChange(600,500,4000);
 swipeChange(1000,1500,1000);
 
 if(textContains("完成").exists())
 {
  sleep(1000);
  back();
  for_jump();
 }
 else
 {
  sleep(4000);
  back();
  for_jump();
 }//总共21s
 sleep(3000);
 }
 toast("完成"+"["+button_text+"]"+"任务");
 sleep(2500);
}


function autoFinish()
{
 if(text("签到").exists())
 {
 text("签到").findOne().click();
 sleep(2000);
 toast("签到成功");
 }
 sleep(2000);
 toast("完成[签到]任务");

 autoSwipe("去浏览");
 autoSwipe("去搜索");
 autoSwipe("去围观");
 autoSwipe("去兑换");
 toast("结束");

}

function getTask()
{ 
 if(my_taobao.exists())
 {
 toast("打开我的淘宝");
 my_taobao.click();
 sleep(2000);
 }
 if(task_door.exists())
 {
 toast("正跳转到任务界面...");
 task_door.click();
 sleep(8000);
 }
 if(task_list.exists())
 {
 toast("正在打开任务列表");
 task_list.click();
 sleep(2000);
 }
 autoFinish();
}

function main()
{
 appRun();
 getTask();
}

main()

使用教程(测试安卓手机可用)

在这里插入图片描述

第一步安装 auto.js

https://www.qb5200.com/softs/727927.html

第二步录入脚本

1. 先复制脚本
2. 打开auto.js软件
3. 先开启点击左上角的三条杠,打开无障碍模式(很重要)
4. 点击右下角的“+”图标
5. 选择文件,名称自行命令(没有限制),点击确定
6. 将脚本粘贴,点击右上角保存,点击运行

温馨提示:尽量选择网络状态使用效果更佳

总结

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们