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

ui模式下currentActivity总是ScriptExecuteActivity #246

Open
danniserena opened this issue Jun 7, 2024 · 0 comments
Open

ui模式下currentActivity总是ScriptExecuteActivity #246

danniserena opened this issue Jun 7, 2024 · 0 comments

Comments

@danniserena
Copy link

我写了几个脚本文件,我想写个界面去控制各个脚本的运行,为了避免出错我执行任务时会判断是否是特定的activity,不是则说明退出了该活动,此时就自动结束任务的执行。但是,我使用currentActivity() 获取到的总是org.autojs.autojs.execution.ScriptExecuteActivity,不论切换到什么页面,不使用 ui 模式,直接调用脚本就能随页面切换正常打印出对应的activity,可能是我对ui模式不了解,我想知道如何在ui模式下去获取当前的活动?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant