Autojs4.1.0实战教程---秘乐短视频

简介: Autojs4.1.0实战教程---秘乐短视频


这个比较冷门,没多少人知道,各项工作也繁琐,到现在我也没搞懂。应一个朋友的要求写了一下,没啥难度就是滑动屏幕和随机关注。代码如下:

auto.waitFor();
app.launchApp('秘乐短视频');
sleep(8000);
console.show();
let i = 1;
let see_count = 500;
while (true) {
    toast("秘乐短视频滑动" + i + '次' + "总计:" + see_count + "次")
    console.log("秘乐短视频滑动" + i + '次' + "总计:" + see_count + "次");
    randomHeart();
    slideScreenDown(303, 1328, 335, 171, 600);
    i++;
    if (i == 500) {
        home();
        exit();
    }
}
/**
 * 屏幕向下滑动并延迟8至12秒
 */
function slideScreenDown(startX, startY, endX, endY, pressTime) {
    swipe(startX, startY, endX, endY, pressTime);
    let delayTime = random(8000, 12000);
    sleep(delayTime);
}
/**随机点赞并休息一秒 */
function randomHeart() {
    index = random(1, 100);
    if (index == 66) {
        var target = id('ly_video_item_like').findOnce();
        if (target == null) {
            return;
        } else {
            target.click();
            sleep(1000);
        }
    }
}

 

目录
相关文章
|
15天前
AutoJS4.1.0实战教程 ---刷宝短视频
AutoJS4.1.0实战教程 ---刷宝短视频
36 0
|
15天前
AutoJS4.1.0实战教程---快刷短视频
AutoJS4.1.0实战教程---快刷短视频
35 1
|
15天前
AutoJs4.1.0实战教程---抖音极速版
AutoJs4.1.0实战教程---抖音极速版
107 0
|
15天前
AutoJS4.1.0实战教程----刷爆短视频
AutoJS4.1.0实战教程----刷爆短视频
45 0
|
15天前
|
缓存
Autojs4.1.0实战教程---快手极速版清理缓存
Autojs4.1.0实战教程---快手极速版清理缓存
47 1
|
15天前
AutoJS4.1.0实战教程 ---淘看点
AutoJS4.1.0实战教程 ---淘看点
30 0
|
15天前
Autojs4.1.0实战教程---抖音极速版自动评论
Autojs4.1.0实战教程---抖音极速版自动评论
118 1
|
15天前
|
区块链
AutoJs4.1.0实战教程---秘乐短视频
AutoJs4.1.0实战教程---秘乐短视频
32 0
|
15天前
AutoJS4.1.0实战教程 ---有颜短视频
AutoJS4.1.0实战教程 ---有颜短视频
25 1
|
15天前
AutoJs实战教程---刷宝短视频
AutoJs实战教程---刷宝短视频
24 0

相关实验场景

更多