|
Post by antonb on May 5, 2021 19:02:12 GMT
Using startApp("..."), there seems to be no method to check if the app is still running or not. How can I test in a running script the app is running, seen at moments the app crash and ankulua keeps to try to detect images. Which is not the behavior I want. When the app crashes every detectimage should in my case flag a warning, so script can retake.
|
|
|
Post by AnkuLua on May 5, 2021 22:22:45 GMT
Some situations and corresponding methods 1. There is " xxx is not responding" on the screen. Then the script can detect it. Then kill and restart the game.
2. The script keeps finding same places to click but the game not responding. Then kill and restart the game.
3. The script can't find any place to click for a long time. You can use region save and check if the saved image vanishing or not. If not vanishing, you can assume that the game crashed. Kill and restart the game.
|
|
|
Post by antonb on May 10, 2021 11:59:56 GMT
Those are workarounds and with a game with a lot different screens this is hard to implement. There should be a function to detect if the game is still running in memory or as task.
Some situations and corresponding methods 1. There is " xxx is not responding" on the screen. Then the script can detect it. Then kill and restart the game. 2. The script keeps finding same places to click but the game not responding. Then kill and restart the game. 3. The script can't find any place to click for a long time. You can use region save and check if the saved image vanishing or not. If not vanishing, you can assume that the game crashed. Kill and restart the game.
|
|