链接:https://pan.baidu.com/s/173_IAk0aN-atUhrobMg7Iw 提取码:m2gg
主要功能就是通过关注对方,然后在关注页面或者粉丝页面进行私信功能,其实就是一种变相的ad。以为内容你自己定义啊
私信后取关哈哈小心人家投诉 你。
没啥核心代码之前基本都发过了,小工具能用上的就拿去用吧。
业务代码:
if (IsFenSiSendMail) { sleep(random(2000, 3000)); if (id("follower_layout").exists()) { id("follower_layout").findOnce().click(); } sleep(random(2000, 3000)); let havedSendMailNumber = 0; //已经发私信的数量 let silderIndex = 0;//已经执行的次数 while (true) { let followUsers = id("follow_button").find();//第一页袋关注粉丝数量 toastInfo("待关注的粉丝" + followUsers.length); for (let i = 0; i < followUsers.length;) { if (havedSendMailNumber >= sendMailNumber) { console.show(); break; } toastInfo(silderIndex); if (silderIndex > 0 && (i == 0 || i == 1)) { continue; } toastInfo("执行第" + i + "次"); sleep(random(1000, 2000)); let b = followUsers[i].bounds(); //好友的名字集合bounds let clickResult = click(b.centerX(), b.centerY());//关注该芬尼斯 toastInfo(clickResult); sleep(random(1000, 2000)); if (clickResult) { sleep(random(1000, 1500));//j间隔一下再次点击 clickResult = click(b.centerX(), b.centerY());//进入个人主页 sleep(random(2000, 3000)); if (clickResult) { if (text("发私信").exists()) { text("发私信").findOnce().click(); if (text("请输入...").exists()) { text("请输入...").findOnce().click(); } else { if (id("editor").exists()) { id("editor").findOnce().click(); } } sleep(QPrivateMailTime * 1000); setText(commentMessage); let randomMin = privateMailTimes * 1000; let randomMax = (parseInt(privateMailTimes) + 2) * 1000; sleep(random(randomMin, randomMax));//思考的时间 if (text("发送").exists()) { text("发送").findOnce().click(); } else { if (id("send_btn").exists()) { id("send_btn").findOnce().click(); } } sleep(random(500, 800)); if (id("left_btn").exists()) { id("left_btn").findOnce().click(); } else { if (desc("返回").exists()) { desc("返回").findOnce().click(); } } sleep(random(1000, 1500)); if (text("发私信").exists()) { if (id("left_btn").exists()) { id("left_btn").findOnce().click(); } else { if (text("返回").exists()) { text("返回").findOnce().parent().click(); } } } sleep(200); i++; } } } toastInfo("完成" + havedSendMailNumber + "个共计" + sendMailNumber); havedSendMailNumber = havedSendMailNumber + 1;//发私信数量 } silderIndex = silderIndex + 1; havedSendMailNumber = havedSendMailNumber + 1;//发私信数量 sleep(1000); swipe(device.width / 3, device.height * 0.8, device.width / 3, device.height * 0.2, random(400, 600)); sleep(1200); swipe(device.width / 3, device.height * 0.5, device.width / 3, device.height * 0.2, random(400, 600)); sleep(random(2000, 3000)); } } if (IsGuanzhuSendMail) { clickFllow(); sleep(random(2000, 3000)); let havedSendMailNumber = 0; //已经发私信的数量 let silderIndex = 0;//已经执行的次数 while (true) { if (havedSendMailNumber == parseInt(sendMailNumber)) { console.show(); toastInfo("本次任务已经完成"); toastInfo("关闭时间已到,系统5秒后关闭"); sleep(5000); home(); exit(); return; } sleep(random(2000, 3000)); let friendNams = id("name").find();//第一页关注好友数量 toastInfo("name" + friendNams.length); for (let i = 0; i < friendNams.length; i++) { if (havedSendMailNumber >= sendMailNumber) { console.show(); break; } if (silderIndex > 0 && (i == 0 || i == 1)) { continue; } sleep(random(1000, 2000)); let b = friendNams[i].bounds(); //好友的名字集合bounds toastInfo(friendNams[i].getText()); click(b.centerX(), b.centerY());//进入real page sleep(random(2000, 3000)); if (text("发私信").exists()) { text("发私信").findOnce().click(); if (text("请输入...").exists()) { text("请输入...").findOnce().click(); } else { if (id("editor").exists()) { id("editor").findOnce().click(); } } sleep(QPrivateMailTime * 1000); setText(commentMessage); let randomMin = privateMailTimes * 1000; let randomMax = (parseInt(privateMailTimes) + 2) * 1000; sleep(random(randomMin, randomMax));//思考的时间 if (text("发送").exists()) { text("发送").findOnce().click(); } else { if (id("send_btn").exists()) { id("send_btn").findOnce().click(); } } sleep(random(500, 1000)); if (id("left_btn").exists()) { id("left_btn").findOnce().click(); } else { if (desc("返回").exists()) { desc("返回").findOnce().click(); } } if (isCancleFlowll) { sleep(random(2000, 3000)); if (id("header_follow_status_button").exists()) { id("header_follow_status_button").findOnce().click(); } else { if (desc("取消关注").exists()) { desc("取消关注").findOnce().click(); } else { if (text("取消关注").exists()) { text("取消关注").findOnce().click(); } } } sleep(random(500, 1000)); if (text("停止关注").exists()) { let b = text("停止关注").findOnce().bounds(); click(b.centerX(), b.centerY());//进入real page } } sleep(random(1000, 1500)); if (text("发私信").exists()) { if (id("left_btn").exists()) { id("left_btn").findOnce().click(); } else { if (text("返回").exists()) { text("返回").findOnce().parent().click(); } } } sleep(200); } toastInfo("完成" + havedSendMailNumber + "个共计" + sendMailNumber); havedSendMailNumber = havedSendMailNumber + 1;//发私信数量 } silderIndex = silderIndex + 1; sleep(1000); swipe(device.width / 3, device.height * 0.8, device.width / 3, device.height * 0.2, random(400, 600)); sleep(1200); swipe(device.width / 3, device.height * 0.5, device.width / 3, device.height * 0.2, random(400, 600)); sleep(random(2000, 3000)); } }
链接:https://pan.baidu.com/s/173_IAk0aN-atUhrobMg7Iw 提取码:m2gg