|
Post by antonb on Jul 11, 2021 7:59:34 GMT
Still issues about the status of an app to run properly.
There really should be a status ....IsRunning(<App>) to find out if an app does run.
Secondly, there are 3 modes to run AnkuLua.
On tablets not rooted the standard running option accessibility is recommended..
However the function KillApp() does not work in accessibility mode.
1) This should be noticed in the API, or a table in the API to mention which functions do not work in this mode (and others) 2) In fact it should work also in that mode to be able to launch app without screendetection.
Anyway ankulua should be able to use in all modes somehow a query to check all processes and launch/kill or check status of a process/app.
This is especially needed in my case, where i do see a particular game does create distorted graphics after a while if it isn't restarted in an emulator, so the script kills the app and launches it again to dirty hack the issue.
|
|
|
Post by AnkuLua on Jul 11, 2021 22:32:56 GMT
Many function limitations are caused by Android system. Android accessibility doesn't support killApp() natively.
You can do it in the two-step way. click on switch by keyevent(187) then swipe left to right or down to up depending on the system. swipe(Location(x1, y1), Location(x2, y2), 1)
|
|