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

有运行完自动锁屏的功能吗 #96

Closed
yanglihao347 opened this issue Sep 19, 2019 · 4 comments
Closed

有运行完自动锁屏的功能吗 #96

yanglihao347 opened this issue Sep 19, 2019 · 4 comments
Labels
Doubt 🛡️ 疑惑 Any doubts about this repository Enhancement 🛠️ 建议 New feature or request Settled 🌴 完成 Happy ending for both human beings and issues themselves

Comments

@yanglihao347
Copy link

午休或者人不在手机旁的时候,定时任务运行完手机就会处于解锁状态一直亮在那里,我手机自动锁屏时间是3分钟,这个设置太短了平常使用会很不方便。
所以有没有这种功能:判断此次定时任务,手机如果执行了解锁操作,运行完就锁屏;如果此次任务没有执行解锁操作,运行完就不锁屏。

@SuperMonster003
Copy link
Owner

锁屏需要root权限 你的设备很可能未root 因此代码中的关屏方法失效 下一版将增加使用修改provider数据的方式间接实现的自动关屏功能 其实就是将锁屏时间 (例如你的是3分钟) 通过代码修改为很小的值 等屏幕超时关闭后立即恢复之前的设置值 (如3分钟) 之前也有人有类似的需求
#91 (comment)

@yanglihao347
Copy link
Author

好的了解,不过我和他这个情况不一样,我的日志里没有提到自动关屏这个功能,就正常提示"蚂蚁森林任务结束"。
另外我还有一个小问题我就直接在这里问一下不提新issue了。
我的定时任务有时候在锁屏状态下不会触发,我手动解锁手机以后立马触发。我考虑是autojs没有后台运行的问题,可为什么我一主动点亮屏幕脚本立马就运行了呢。

@SuperMonster003
Copy link
Owner

SuperMonster003 commented Sep 19, 2019 via email

@SuperMonster003
Copy link
Owner

已于 v1.9.0 增加自动关屏备用方案
此 Issue 暂时关闭
如问题复现或出现新问题 可重新反馈 感谢支持

@SuperMonster003 SuperMonster003 added Doubt 🛡️ 疑惑 Any doubts about this repository Enhancement 🛠️ 建议 New feature or request Settled 🌴 完成 Happy ending for both human beings and issues themselves labels Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doubt 🛡️ 疑惑 Any doubts about this repository Enhancement 🛠️ 建议 New feature or request Settled 🌴 完成 Happy ending for both human beings and issues themselves
Projects
None yet
Development

No branches or pull requests

2 participants