欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-07-06 17:35:54
自动收喵币脚本//by 丈二//auto.waitfor();var height = device.height;var width = device.width;var my_taobao = d...

自动收喵币

脚本

//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()

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

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

第一步安装 auto.js

第二步录入脚本

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

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

总结

到此这篇关于2020淘宝618理想生活列车自动领喵币auto.js脚本的教程的文章就介绍到这了,更多相关淘宝618自动领喵币内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!