Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

脚本运行错误,求解! #122

Closed
zhangguangjin opened this issue Nov 11, 2019 · 12 comments
Closed

脚本运行错误,求解! #122

zhangguangjin opened this issue Nov 11, 2019 · 12 comments
Labels
Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Reinforcement ✨ 强化 Issues for higher quality of being compatible Settled 🌴 完成 Happy ending for both human beings and issues themselves

Comments

@zhangguangjin
Copy link

你好,大神,之前用的是1.7.0,运行没什么问题,就是偶尔要清除下程序存储,用到今天来更新了下,1.9.4,可以解锁,但不运行程序,提示19:19:55.264/E: JavaException: java.lang.IllegalArgumentException: Path bounds must not be negative (file:///android_asset/modules/automator.js#17)
JavaException: java.lang.IllegalArgumentException: Path bounds must not be negative
at :43:0

因为我一直是配合TASKER定时一天3次用的,1.7.0时是直接插件就可以了,1.9.4不行了,要在前面加个启动程序AUTO.JS才行,加了是可以但完成了后auto.js不会退出。
Screenshot_20191111_180935_com huawei android launcher
Screenshot_20191111_200523_org autojs autojs
Screenshot_20191111_200545_net dinglisch android taskerm
Screenshot_20191111_201106_org autojs autojs

@zhangguangjin
Copy link
Author

zhangguangjin commented Nov 11, 2019

启动跳板是开启的,关闭开启都试过,效果一个样

@SuperMonster003
Copy link
Owner

尝试将 Modules/MODULE_UNLOCK.js 的 533 行

clickAction(confirm_btn_node, "widget");

修改为

try {
    clickAction(confirm_btn_node, "widget");
} catch (e) {}

@SuperMonster003 SuperMonster003 added Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Nov 13, 2019
@zhangguangjin
Copy link
Author

zhangguangjin commented Nov 13, 2019

按照您的方法修改了下,确实可以了,不再报错了。做程序的就是牛B,几下找出问题。奈何我几年前就想学编程,可现在还是一点不懂,支持!!!
另外还有个问题要反馈下,我手机是华为P30PRO,就是自动解锁后会自动打开‘运动健康’再开始蚂蚁森林,任务完成了运动健康还留在前台,不知何解,这种情况出现的概率是80%
我录下了整个过程:
http://v.youku.com/v_show/id_XNDQzNDk4ODQ2NA==.html
Screenshot_20191113_182739_com huawei health

@SuperMonster003
Copy link
Owner

可尝试关闭"启动跳板"功能
运行 "Ant_Forest_Settings.js" -> 运行与安全 -> 支付宝应用启动跳板 -> [ 关闭跳板 ]

可能是脚本在获取 Auto.js 包名的时候 误将 运动健康 的包名作为目标参数启动了

@zhangguangjin
Copy link
Author

反馈问题时"启动跳板"是关闭了的,你回复后我又打开试了多次,然后又关闭试了多次还是一样!

@SuperMonster003 SuperMonster003 removed the Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues label Nov 14, 2019
@zhangguangjin
Copy link
Author

今天我单独用解锁模块测下,发现仍有一定几率会打开‘运动健康’!所以我怀疑导致此问题的代码可能在解锁模块中!猜测

@SuperMonster003
Copy link
Owner

视频中看到设备解锁成功后 主页面出现"完成"字样的桌面小工具 (左侧是"xxxx步" 右上部分是"完成 xx%" 右下部分是"热量 xxx 大卡") 脚本会点击"完成" 因为有些机型 (如坚果 Pro 2s) 需要在输入密码后额外点击"完成"按钮 因而脚本误点击了桌面小工具 进入了运动健康
下一版将尝试增加兼容方案

@SuperMonster003 SuperMonster003 added Reinforcement ✨ 强化 Issues for higher quality of being compatible Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues and removed Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Nov 15, 2019
@zhangguangjin
Copy link
Author

感谢回复!已了解,期待下一版!

@SuperMonster003
Copy link
Owner

v1.9.6 已尝试修复上述问题 如使用后问题复现 可继续反馈

@SuperMonster003 SuperMonster003 added Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month and removed Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues labels Nov 19, 2019
@zhangguangjin
Copy link
Author

196问题解决!感谢!!!原来194解锁模块单独可解锁,就是会出现上述问题,现用196解锁模块屏幕都不点亮,我用let unlock_module = new (require("./Modules/MODULE_UNLOCK.js"))();
unlock_module.unlock();和require("./MODULE_UNLOCK").unlock();都不行!图中所示
Screenshot_20191119_143259
Screenshot_20191119_143833_org autojs autojs

@SuperMonster003
Copy link
Owner

@zhangguangjin

require("./Modules/MODULE_UNLOCK").unlock();

@zhangguangjin
Copy link
Author

OK, 原来是路径错误!再次感谢!问题结束。

@SuperMonster003 SuperMonster003 added Settled 🌴 完成 Happy ending for both human beings and issues themselves and removed Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Reinforcement ✨ 强化 Issues for higher quality of being compatible Settled 🌴 完成 Happy ending for both human beings and issues themselves
Projects
None yet
Development

No branches or pull requests

2 participants