牙叔教程 简单易懂
let adbCheck = $shell.checkAccess("adb"); if (!adbCheck) { console.log("没有adb权限, 请先使用shizuku激活autojs的adb权限"); exit(); } else { console.log("已有adb权限"); } let x = 772; let y = 1126; $shell.setDefaultOptions({ adb: true }); // cmd = "input text '" + x + "'"; // 输入文本 // cmd="input tap " + x + " " + y; // 点击 cmd = "input swipe " + x + " " + y + " " + (x - 200) + " " + y; // 滑动 log(cmd); r = $shell(cmd); log(r);
关教程
https://www.yuque.com/yashujs/bfug6u/lzqdct
https://www.yuque.com/yashujs/bfug6u/nhtstr
https://www.yuque.com/yashujs/bfug6u/lzqdct
https://www.yuque.com/yashujs/bfug6u/kcqr8r
https://www.yuque.com/yashujs/bfug6u/welyqh
https://www.yuque.com/yashujs/bfug6u/ksd992
名人名言
思路是最重要的, 其他的百度, bing, stackoverflow, github, 安卓文档, autojs文档, 最后才是群里问问
--- 牙叔教程
声明
部分内容来自网络
本教程仅用于学习, 禁止用于其他用途