Script of Taobao 618 ideal life train automatic picking up meow coins in 2020

Automatic cash collection

script

Welcome to feedback in the comment area for the convenience of the author to modify the script

//by Zhang Er
auto.waitFor();
var height = device.height;
var width = device.width;
function appRun()
{
    var version = device.release;
    toast("resolving power:"+width+"*"+height+"\n\n Android"+version);
    sleep(3000);
    launchApp("Mobile Taobao");
    toast("Open mobile Taobao...");
    sleep(3000);
}
function swipeChange(move_length,duration,sleep_time)
{
    swipe(width / 2 , height - move_length , width / 2,0,duration); 
    sleep(sleep_time);
}

function autoSwipe(button_text)
{
    while(textContains(button_text).exists())
    {
        toast(button_text + "underway");
        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("complete").exists())
        {
            sleep(500);
            back();
        }
        else
        {
            sleep(4000);
            back();
        }//21s in total
        sleep(3000);
    }
    toast("complete"+"["+button_text+"]"+"task");
    sleep(2500);
}

function autoFinish()
{
    if(text("Sign in").exists())
    {
        text("Sign in").findOne().click();
        sleep(2000);
        toast("Sign in succeeded");
    }
    sleep(2000);
    toast("complete[Sign in]task");

    autoSwipe("To browse");
    autoSwipe("To search");
    autoSwipe("To surround");
    autoSwipe("To exchange");
    toast("end");

}

function getTask()
{   
    var task_door = desc("Main interaction");
    var task_list = text("Do the task, get the meow coin");
    if(task_door.exists())
    {
        toast("Skipping to task interface...");
        task_door.click();
        sleep(8000);
    }
    if(task_list.exists())
    {
        toast("Opening task table");
        task_list.click();
        sleep(1500);
    }
    className("android.widget.Button").text("close").waitFor();
    autoFinish();
}

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

main()

Use the tutorial (test Android phones available)

First step installation auto.js

website: https://app.3dmgame.com/zt/59523_game / (or Baidu)

Step 2 input script

1. Copy script first
2. Open auto.js Software
3. First, open the barrier free mode by clicking the three bars in the upper left corner (very important)
4. Click the "+" icon in the lower right corner
5. Select the file, command by name (without limitation), and click OK
6. Paste the script, click save in the upper right corner, and click Run




Warm tip: try to choose network state for better effect

Tags: Android Mobile network

Posted on Sun, 31 May 2020 00:31:56 -0400 by tron00