钉钉一键打卡下班(需root)

var ra = new RootAutomator();
ra.setScreenMetrics(1080, 1920);
launchApp("钉钉");
sleep(3000)
ra.sendEvent(3, 48, 4);
ra.sendEvent(3, 49, 4);
ra.sendSync();
sleep(8);
ra.sendEvent(3, 48, 5);
ra.sendEvent(3, 49, 5);
ra.sendSync();
sleep(16);
ra.sendEvent(3, 48, 6);
ra.sendEvent(3, 49, 6);
ra.sendSync();
sleep(8);
ra.sendEvent(3, 48, 7);
ra.sendEvent(3, 49, 7);
ra.sendSync();
sleep(33);
ra.sendEvent(3, 48, 5);
ra.sendEvent(3, 49, 5);
ra.sendSync();
sleep(8);
ra.sendEvent(3, 48, 4);
ra.sendEvent(3, 49, 4);
ra.sendSync();
sleep(25);
ra.sendEvent(3, 57, -1);
ra.sendEvent(1, 330, 0);
ra.sendSync();
sleep(1021);
ra.sendEvent(3, 57, 15248);
ra.touchX(543);
ra.touchY(1856);
ra.sendEvent(1, 330, 1);
ra.sendSync();
sleep(48);
ra.sendEvent(3, 48, 5);
ra.sendEvent(3, 49, 5);
ra.sendSync();
sleep(41);
ra.sendEvent(3, 48, 4);
ra.sendEvent(3, 49, 4);
ra.sendSync();
sleep(24);
ra.sendEvent(3, 57, -1);
ra.sendEvent(1, 330, 0);
ra.sendSync();
sleep(798);
ra.sendEvent(3, 57, 15249);
ra.sendEvent(3, 48, 5);
ra.sendEvent(3, 49, 5);
ra.touchX(693);
ra.touchY(1350);
ra.sendEvent(1, 330, 1);
ra.sendSync();
sleep(4);
ra.sendEvent(3, 48, 4);
ra.sendEvent(3, 49, 4);
ra.sendSync();
sleep(57);
ra.sendEvent(3, 57, -1);
ra.sendEvent(1, 330, 0);
ra.sendSync();
sleep(4271);
ra.press(563,1154,10)
ra.exit();

最后由 lyn 编辑
此回复已被删除!

很需要,老是忘记打卡。

  • 3
    帖子
  • 3742
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待