1 Star 3 Fork 1

think3r/learn_autoxJs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.js 723 Bytes
一键复制 编辑 原始数据 按行查看 历史
think3r 提交于 2025-01-24 18:52 +08:00 . update: 通过 OCR 识别广告的关闭按钮
// var mBtn = textMatches("已观看").findOnce()
// if (mBtn != undefined) {
// var retBtn = textMatches("跳过").findOnce()
// if (retBtn != undefined) {
// toastLog("已看完, 跳过视频")
// retBtn.click()
// } else {
// toastLog("未看完视频, 继续观看, 等待自动结束")
// sleep(30000)
// back()
// }
// } else {
// toastLog("未找到")
// }
// back()
// launchApp("起点读书")
// mBtnVideoClose = className("android.widget.TextView").text("跳过视频广告").find()
mBtnVideoClose =textMatches("知道了").findOne(2000);
if (mBtnVideoClose != undefined) {
toastLog("1")
mBtnVideoClose.click()
} else {
toastLog("0")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/think3r/learn_autoxJs.git
git@gitee.com:think3r/learn_autoxJs.git
think3r
learn_autoxJs
learn_autoxJs
master

搜索帮助