georgehuan1994 / DingDing-Automatic-Clock-in

钉钉全自动打卡脚本,基于auto.js,免root,适用于蓝牙考勤机
843 stars 221 forks source link

解锁有密码的可以吗 #35

Closed Phil2048 closed 2 years ago

Phil2048 commented 2 years ago

是要去掉锁屏密码吗

georgehuan1994 commented 2 years ago

可以,根据你的设备和需求来写就可以了

常规密码

//密码:1234
desc(1).findOne().click();
desc(2).findOne().click();
desc(3).findOne().click();
desc(4).findOne().click();

手势密码

//密码:Z字型
gesture(
            500, // 滑动时间:毫秒
            [
                252,      // 滑动起点 x 坐标
                1236     // 滑动起点 y 坐标
            ],
            [
                252,    // x2
                1820   // y2
            ],
            [
                838,       // 滑动终点 x 坐标:屏幕宽度的一半
                1236      // 滑动终点 y 坐标:距离屏幕顶部 10% 的位置
            ]
        )