微信点赞实现-百度的
auto.waitFor();
var sum = 0;
console.show();
launchApp("微信");//启动微信
text("发现").findOne().parent().click();
text("朋友圈").findOne().parent().click();
sleep(1000);
scoll();//调用执行方法
function scoll() {
do {
sleep(2000);//暂停2秒 等页面滑动执行完成
//当前页面逻辑
comment = desc("评论").find();
if (!comment.empty()) {
console.log("找到评论集合了");
comment.forEach(item => {
console.log("找到一个评论框");
var b = item.click();
console.log(b ? "点击评论成功" : "点击评论失败");
sleep(1000);
if (className("android.widget.TextView").text("赞").exists()) {
className("android.widget.TextView").text("赞").findOne().parent().click();
sleep(1000);
sum++;
console.info("已赞个数:" + sum);
}
})
}
} while (className("android.widget.ListView")
.findOne().scrollForward());
}
代码auto.js
---------------------------------------------------------------------------
国之殇,未敢忘!
南京大屠杀!
731部队!
(有关书籍《恶魔的饱食》)以及核污染水排海等一系列全无人性的操作,购买他们的食品和为它们提供帮助只会更加变本加厉的害你,呼吁大家不要购买日本相关产品
昭昭前事,惕惕后人
吾辈当自强,方使国不受他人之侮!
---------------------------------------------------------------------------
作者:三号小玩家
出处:https://www.cnblogs.com/q1359720840/
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。 版权信息

浙公网安备 33010602011771号