码迷,mamicode.com
首页 > 微信 > 详细

微信运动自动点赞

时间:2020-01-24 15:51:47      阅读:865      评论:0      收藏:0      [点我收藏+]

标签:主页   width   wip   exists   with   scripts   xtend   else   idt   

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

微信运动自动点赞

标签:主页   width   wip   exists   with   scripts   xtend   else   idt   

原文地址:https://www.cnblogs.com/qinsilandiao/p/12232180.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!