ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 17, 2020 5:43:10 GMT
What i want to do is that if game is still running. It will check condition and run bots. however, if the game crashed then start game with running script from the beginning. so far, im successfully code the game start and do what it need to do.
is there any function in ankulua that can check whether the game app is still running or not?
if possible, please can you demonstrate in here.
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 18, 2020 22:59:32 GMT
more i read on how to do this it need activitymanager function, which ankulua not supported it.
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 21, 2020 19:40:59 GMT
workaround solution to my problems. Use keyevent(187) and check whether the name of the app is running inside switch app. if it is there, continue to do sth. however, if not, then call startApp().
|
|