通过auto.js 来控制
function like() {
app.launch("com.tencent.mm");
// 荣耀10
sleep(2000);
click(637, 2145);
sleep(1000);
// 点发现
click(692, 2073);
sleep(50);
// 点朋友圈
click(500, 300);
sleep(1000);
while (1) {
var listView = className("ListView").findOne();
var listViewChild = listView.children();
listViewChild.forEach(item => {
var comment = item.findOne(desc("评论"));
if (comment) {
comment.click();
sleep(1000);
var like = text("赞").findOnce();
if (like) {
like.parent().click();
}
// id("eym").findOne().click();
sleep(100);
}
});
// listView.scrollDown();
swipe(550, 1200, 550, 200, 200);
}
}
like();