微信运动自动点赞

家住魔仙堡 提交于 2020-01-24 15:52:29
if (text('排行榜').exists()) {
    while (true) {
        let objs = id('bpz').find();
        let objsLength = objs.size();
        for (let index = 0; index < objsLength; index++) {
            let obj = objs[index];
            if (obj.parent().parent().click()) {
                sleep(1000)
            }
            if (text('赞我的朋友').exists()) {
                back()
                sleep(2000)
            }
            if (textEndsWith('的主页').exists()) {
                back()
                sleep(2000)
            }

        }
        if (text('邀请朋友').exists()) {
            break;
        }
        swipe(device.width / 2, device.height / 1.1,
            device.width / 2, device.height / 6, 800);
        sleep(2000);
    }
    toastLog('点赞完成');

} else {
    log('不在排行版页面');
    exit();
}
exit();

https://github.com/qinsilandiao/auto.js_scripts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!