You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
621 B

app.launchApp("小红书");
sleep(3000); // 等待应用启动,根据设备性能调整时间
click("直播");
sleep(3000);
var positions = [
{x: 300, y: 800},
{x: 800, y: 900},
{x: 300, y: 1700},
{x: 900, y: 1980}
];
while(true)
{
sleep(3000);
// 生成一个0到5之间的随机整数
var randomIndex = Math.floor(Math.random() * positions.length);
// 获取随机选择的位置
var randomPosition = positions[randomIndex];
// 使用click函数点击随机位置
click(randomPosition.x, randomPosition.y);
sleep(3000);
click(1120,220);
}