We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我写了几个脚本文件,我想写个界面去控制各个脚本的运行,为了避免出错我执行任务时会判断是否是特定的activity,不是则说明退出了该活动,此时就自动结束任务的执行。但是,我使用currentActivity() 获取到的总是org.autojs.autojs.execution.ScriptExecuteActivity,不论切换到什么页面,不使用 ui 模式,直接调用脚本就能随页面切换正常打印出对应的activity,可能是我对ui模式不了解,我想知道如何在ui模式下去获取当前的活动?
currentActivity()
org.autojs.autojs.execution.ScriptExecuteActivity
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我写了几个脚本文件,我想写个界面去控制各个脚本的运行,为了避免出错我执行任务时会判断是否是特定的activity,不是则说明退出了该活动,此时就自动结束任务的执行。但是,我使用
currentActivity()
获取到的总是org.autojs.autojs.execution.ScriptExecuteActivity
,不论切换到什么页面,不使用 ui 模式,直接调用脚本就能随页面切换正常打印出对应的activity,可能是我对ui模式不了解,我想知道如何在ui模式下去获取当前的活动?The text was updated successfully, but these errors were encountered: