|
Post by ahmish on Feb 1, 2024 10:09:01 GMT
Hi, Is there a way to check if app is running? there's the startApp(String packageName). in my script the game sometimes closes for some reason so I added the startApp() in the loop. only problem here is when im chatting or doing something in game while the script is running this interrupts the game. like closing the chat keyboard, interrupting scrolls, etc. would be really helpfull if there's like
if not(app is running) then startApp() end
Ps. Searching image works also but i will have to search lots of image (different screens) just to avoid doing startapp()
|
|
|
Post by Exilereven on Feb 1, 2024 13:35:08 GMT
Just a quick thought after reading.
You could...
When the user starts the script, have the script hit home key
keyevent(3)
the take a snapshot of like only the top right corner of the screen.
the appswitch back to main app
keyevent(187)
send click to enter back into whiteout
now start your script continues after confirming your on the "starting screen" (via an image for anchor) then you know your good to start normally
but every "loop", now you only have to check for that one single image to make sure the game is running or not, alleviate the need for checking all the different scenarios of screen backgrounds.
|
|
|
Post by ahmish on Feb 1, 2024 15:54:32 GMT
Just a quick thought after reading. You could... When the user starts the script, have the script hit home key keyevent(3) the take a snapshot of like only the top right corner of the screen. the appswitch back to main app keyevent(187) send click to enter back into whiteout now start your script continues after confirming your on the "starting screen" (via an image for anchor) then you know your good to start normally but every "loop", now you only have to check for that one single image to make sure the game is running or not, alleviate the need for checking all the different scenarios of screen backgrounds. This is actually genius! lemme try how i can implement this
|
|
|
Post by Exilereven on Feb 1, 2024 16:42:42 GMT
Just a quick thought after reading. You could... When the user starts the script, have the script hit home key keyevent(3) the take a snapshot of like only the top right corner of the screen. the appswitch back to main app keyevent(187) send click to enter back into whiteout now start your script continues after confirming your on the "starting screen" (via an image for anchor) then you know your good to start normally but every "loop", now you only have to check for that one single image to make sure the game is running or not, alleviate the need for checking all the different scenarios of screen backgrounds. This is actually genius! lemme try how i can implement this Let me know if you need a different brain on something. I don't ever mind helping active scripters . Discord: Exilereven#9267 Faster chatting
|
|
|
Post by ahmish on Feb 1, 2024 18:24:15 GMT
This is actually genius! lemme try how i can implement this Let me know if you need a different brain on something. I don't ever mind helping active scripters . Discord: Exilereven#9267 Faster chatting Thanks!, I have added you up and I have implemented your suggestion with a slight change. I used startAPP() instead of keyevent(187) to return to game.
|
|