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

Bug反馈: [ 关于屏幕息屏问题 ] #521

Open
jobinli opened this issue Sep 6, 2021 · 5 comments
Open

Bug反馈: [ 关于屏幕息屏问题 ] #521

jobinli opened this issue Sep 6, 2021 · 5 comments
Labels
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 More Info Needed 🔎 提供详情 Further information is requested

Comments

@jobinli
Copy link

jobinli commented Sep 6, 2021

问题描述
拉起蚂蚁森林后,如果差一两分钟自己的能量才成熟,会进入监控自己的能量阶段。
目前发现,监控过程中如果屏幕亮屏时间较短会直接息屏导致脚本没有正常运行。
希望可以加入脚本运行中保持屏幕常亮的功能(device.keepScreenOn()device.cancelKeepingAwake() 不知道满不满足需求),
或者支持配置的间隔时间点击屏幕/能量球以免息屏的功能。

日志截图

软件硬件信息
操作系统: [ 安卓11 ]
设备型号: [ 红米K40 ]
Auto.js版本: [ Pro 8.8.10-0 ]
项目版本: [ 如: v2.1.10 ]

其他
[ 包括但不限于 建议/提案/想法/灵感... ]

@GodManRui
Copy link

我跟你恰恰相反,我手机设置30s息屏,但凡走到监控自己能量的任务之后,发现我手机被设置成了设置2min息屏了。。。

@SuperMonster003
Copy link
Owner

监控过程中会设置一个屏幕常亮时间
如 2.05 分钟
在此期间设备屏幕应该保持常亮
如果项目配置工具中开启了开发者测试日志则会在日志中有所体现

可尝试以下测试代码 观察设备是否在五分钟内一直保持亮屏

device.keepScreenOn(5 * 60e3);

@SuperMonster003 SuperMonster003 added 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 More Info Needed 🔎 提供详情 Further information is requested labels Oct 26, 2021
@GodManRui
Copy link

大佬王者归来!

1 similar comment
@GodManRui
Copy link

大佬王者归来!

@debugerliu
Copy link

我也是K40,但是就是不能运行,请问你们的可以吗

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 Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month More Info Needed 🔎 提供详情 Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants