2020某宝双十二活动auto脚本,强势来袭!

更新说明,看这里,这边看,下边没代码:

        此更新只做通知,脚本发在群文件,想要的朋友们,自己加群自取【群:708072830】,脚本不定时更新,加群的朋友先别着急退群

目前脚本支持:

  • 支持自动【领欢乐币】
  • 支持自动【去打卡】
  • 支持自动做【去完成】类任务
  • 自动跳过【开通任务】【分享任务】【施肥任务】【充值任务】【开通连续包月任务】【打开APP任务】【拍立淘任务】【拍立淘任务】...

                                                                                                                                                                     ----更新于:2020/12/04


根据群友反馈以及自己亲测,该脚本运行会被高版本某宝自动检测到,每次奖励极低!但是,

为了有需要的大家加群,有最新的解决办法!绝不是为了骗你进群,只是当心此文被某宝内部人员看到!毕竟脚本dai刷就不太文明 !最新脚本已传群文件!

【群号:708072830】需要加群自取!每天不定时版本迭代!脚本可支持【某宝】【JD】【ZFB】,按需勾选!可同步执行!特别好用!!!支持以下:

淘宝

  • 支持自动【签到】
  • 支持自动【领取奖励】
  • 支持自动做【去完成】类任务
  • 支持自动做【去浏览】类任务
  • 支持自动做【去搜索】类任务
  • 支持自动做【去观看】类任务
  • 支持自动【拍猫猫】(可自定义次数)

支付宝

  • 支持自动【签到】
  • 支持自动做【逛一逛】类任务

京东

  • 支持自动【签到】
  • 支持自动做【浏览类】任务
  • 支持自动做【商品浏览】任务
  • 支持自动做【商品加购】任务

【再说一遍,按需加群自取!此文js代码不再维护!】


      为了杜绝"好吃懒做"之人,拿了我的脚本还要私聊我各种diss我,本来是资源共享、挺开心的一件事,却非要闹心我,哪来的义务我就要为你服务,所以将群设置成了付费群,不喜勿喷!谢谢! ----更新于2020/10/26 

入群二维码:

脚本一:

"auto";
console.show();
speed = 1;
float = 1.25;
swipeTips = "滑啊滑啊滑啊滑";
height = device.height;
width = device.width;
setScreenMetrics(width, height);
run();

/**
 * 淘宝超级星秀猫脚本
 * 模拟纯人工点击版
 */
function run() {
    var i = j = 0;
    var taskList = ['去浏览', '去搜索', '领取奖励', '去完成'];
    log("淘宝双11超级星秀猫脚本");
    app.startActivity({
        action: "VIEW",
        data: "taobao://pages.tmall.com/wow/z/hdwk/act-20201111/index"
    })
    log("进入活动页面");
    randomSleep(1000 * speed);
    className("android.widget.Button").text("赚喵币").waitFor()
    randomSleep(1000);
    if (!textContains("累计任务奖励").exists()) {
        clickContent("赚喵币");
    }
    randomSleep(1500 * speed);
    if (className("android.widget.Button").text("领取奖励").exists()) {
        clickContent("领取奖励");
        randomSleep(200);
        log("领取奖励成功");
    }
    randomSleep(1500 * speed);
    taskList.forEach(task => {
        while (textContains(task).exists()) {
            log("开始做第" + (i + 1) + "次任务!");
            var button = text(task).findOnce(j);
            if (button == null) {
                break;
            }
            switch (task) {
                case '去搜索':
                case '去完成':
                    log("开始【" + task + "】任务")
                    clickButton(button);
                    randomSleep(2000 * speed);
                    if (textContains("复制链接").exists()) {
                        log("跳过分享任务");
                        j++;
                        i++;
                        back();
                        sleep(200);
                        back();
                        break;
                    }
                    if (textContains("淘宝特价版送红包").exists()) {
                        log("跳过打开APP任务");
                        j++;
                        i++;
                        back();
                        break;
                    }
                    toast(swipeTips);
                    randomSwipe();
                    randomSleep(2000 * speed);
                    toast(swipeTips);
                    randomSwipe();
                    randomSleep(2000 * speed);
                    toast(swipeTips);
                    randomSwipe();
                    textContains("任务完成").findOne(10000 * speed);
                    i++;
                    log("已完成第" + i + "次任务!");
                    back();
                    break;
                case '去浏览':
                    log("开始【" + task + "】任务")
                    randomSleep(500 * speed);
                    clickButton(button);
                    randomSleep(1500 * speed);
                    if (!textContains("跟主播聊").exists() || !textContains("赚金币").exists()) {
                        toast(swipeTips);
                        randomSwipe();
                        randomSleep(3500 * speed);
                        toast(swipeTips);
                        randomSwipe();
                        randomSleep(12000 * speed);
                        toast(swipeTips);
                        randomSwipe();
                    } else {
                        randomSleep(15000 * speed);
                    }
                    textContains("任务完成").findOne(10000 * speed);
                    i++;
                    log("已完成第" + i + "次任务!")
                    back();
                    break;
                case '领取奖励':
                    clickButton(button);
                    randomSleep(1500 * speed);
                    log("领取奖励成功")
                    break;
                default:
                    break;
            }
            randomSleep(2000 * speed);
        }
    });
    alert("任务貌似做完啦!\n若仍有任务请重新运行!");
}

/**
 * 通过文字内容模拟点击按钮
 * @param content 按钮文字内容
 * @param type 点击类型,默认为text点击
 */
function clickContent(content, type) {
    var type = type || "text";
    sleep(1000);
    if (type == "text") {
        var button = text(content).findOne();
    } else {
        var button = desc(content).findOne();
    }
    clickButton(button);
    toastLog("点击【" + content + "】");
    return button;
}


/**
 * 根据控件的坐标范围随机模拟点击
 * @param button 
 */
function clickButton(button) {
    var bounds = button.bounds();
    click(random(bounds.left, bounds.right), random(bounds.top, bounds.bottom));
}

/**
 * 根据float倍数sleep随机时间
 * @param time 
 */
function randomSleep(time) {
    sleep(ramdomByFloat(time));
}

/**
 * 随机滑动
 */
function randomSwipe() {
    smlMove(ramdomByFloat(width / 2), ramdomByFloat(height / 1.5), ramdomByFloat(width / 2), ramdomByFloat(height / 4), ramdomByFloat(800));
}

/**
 * 范围随机数生成
 * @param min 
 * @param max 
 */
function random(min, max) {
    return Math.round(Math.random() * (max - min)) + min;
}

/**
 * 根据float生成随机数
 * @param number 
 */
function ramdomByFloat(number) {
    return random(number, number * float);
}

/**
 * 仿真随机带曲线滑动 
 * @param qx 起点x轴坐标
 * @param qy 起点y轴坐标
 * @param zx 终点x轴坐标
 * @param zy 终点y轴坐标
 * @param time 滑动时间,毫秒
 */
function smlMove(qx, qy, zx, zy, time) {
    var xxy = [time];
    var point = [];
    var dx0 = {
        "x": qx,
        "y": qy
    };
    var dx1 = {
        "x": random(qx - 100, qx + 100),
        "y": random(qy, qy + 50)
    };
    var dx2 = {
        "x": random(zx - 100, zx + 100),
        "y": random(zy, zy + 50),
    };
    var dx3 = {
        "x": zx,
        "y": zy
    };
    for (var i = 0; i < 4; i++) {
        eval("point.push(dx" + i + ")");
    };
    for (let i = 0; i < 1; i += 0.08) {
        xxyy = [parseInt(bezierCurves(point, i).x), parseInt(bezierCurves(point, i).y)];
        xxy.push(xxyy);
    }
    gesture.apply(null, xxy);
};

function bezierCurves(cp, t) {
    cx = 3.0 * (cp[1].x - cp[0].x);
    bx = 3.0 * (cp[2].x - cp[1].x) - cx;
    ax = cp[3].x - cp[0].x - cx - bx;
    cy = 3.0 * (cp[1].y - cp[0].y);
    by = 3.0 * (cp[2].y - cp[1].y) - cy;
    ay = cp[3].y - cp[0].y - cy - by;

    tSquared = t * t;
    tCubed = tSquared * t;
    result = {
        "x": 0,
        "y": 0
    };
    result.x = (ax * tCubed) + (bx * tSquared) + (cx * t) + cp[0].x;
    result.y = (ay * tCubed) + (by * tSquared) + (cy * t) + cp[0].y;
    return result
};

脚本二: 

auto.waitFor();
var height = device.height;
var width = device.width;
toast("\n设备宽" + width + "\n" + "设备高" + height + "\n" + "手机型号" + device.model + "\n安卓版本" + device.release)
setScreenMetrics(width, height);

lingqu();

function lingqu() {
    app.launchApp("手机淘宝");
    toast("打开淘宝");
    sleep(6000);
    click(600, 1235);//进入活动页
    sleep(6000);

    click(900, 1320);
    toast("领金币");
    //id("_KivZw5").findOne().click();//点猫  领金币
    // //浏览15秒领金币
    sleep(1500);
    while (text("去喂猫 赚更多喵币").exists()) {
        text("去喂猫 赚更多喵币").findOne().click();
        }
    click(920, 2100);
    toast("赚喵币");

    sleep(1500);
    if (text("签到").exists()) {
        text("签到").findOne().click();
        sleep(1600);
        toast("签到成功")
    }
    sleep(1500);
    while (text("去浏览").exists()) {
        toast("存在去浏览");
        text("去浏览").findOne().click();
        sleep(1500);
        sml_move(width / 2, height - 500, width / 2, 0, 500);
        sleep(2500);
        sml_move(width / 2, height - 500, width / 2, 0, 500);
        sleep(10000);
        sml_move(width / 2, height - 500, width / 2, 0, 500);
        sleep(8000);
        back();
        sleep(1600);
    }
    while (text("去完成").exists()) {
        //要支持的动作
        toast("存在去完成");
        text("去完成").findOne().click();
        sleep(2500);
        sml_move(width / 2, height - 600, width / 2, 0, 500);
        sleep(3500);
        sml_move(width / 2, height - 600, width / 2, 0, 500);
        sleep(10000);
        sml_move(width / 2, height - 600, width / 2, 0, 500);
        sleep(9000);
        back();
        sleep(1000);
    }
    toast("结束");
}

//仿真随机带曲线滑动
//qx, qy, zx, zy, time 代表起点x,起点y,终点x,终点y,过程耗时单位毫秒
function sml_move(qx, qy, zx, zy, time) {
    var xxy = [time];
    var point = [];
    var dx0 = {
        "x": qx,
        "y": qy
    };

    var dx1 = {
        "x": random(qx - 100, qx + 100),
        "y": random(qy , qy + 50)
    };
    var dx2 = {
        "x": random(zx - 100, zx + 100),
        "y": random(zy , zy + 50),
    };
    var dx3 = {
        "x": zx,
        "y": zy
    };
    for (var i = 0; i < 4; i++) {

        eval("point.push(dx" + i + ")");

    };
    log(point[3].x)

    for (let i = 0; i < 1; i += 0.08) {
        xxyy = [parseInt(bezier_curves(point, i).x), parseInt(bezier_curves(point, i).y)]

        xxy.push(xxyy);

    }

    log(xxy);
    gesture.apply(null, xxy);
};

使用说明:

1、安卓设备(无需root)安装Auto.js,APP下导入js脚本
2、开启无障碍服务并授权给Auto.js(不授权会报错)
3、Auto.js APP下导入js脚本,运行即可
4、仍不了解怎么使用的,建议度娘一下

5、在非Root情况下,Auto.JS只能运行在>=Android7.0以上的系统。

操作步骤:

1、将js代码保存成一个.js文件,然后电脑发送给微信或者qq,手机点击下载保存,然后从文件管理器找到其存储位置,并选择auto导入脚本文件,即可!

 2、导入成功后,点击运行即可!

疯狂暗示免费三连击!疯狂暗示免费三连击!疯狂暗示免费三连击!

若需要脚本,也可加群自取【群号:708072830】

猜你喜欢

转载自blog.csdn.net/weixin_43970743/article/details/109194749