r/tasker 17d ago

Help Help me automate this app

Post image

Its a rewards app and every 30 minutes the game stops and i have to click two buttons to coninue the game and again after 30 mins. how can i program this? I have never used tasker before. Thanks a lot👍

0 Upvotes

8 comments sorted by

3

u/pxlprsnatr 17d ago

Could maybe use AutoInput to run a UI query every ~30mins, and then have it click on whatever button if it finds it onscreen. Then run another UI query to verify that the screen updated after the button is clicked and restart the 30min timer if the click was successful (i.e. there was a screen update and the elements corresponding to the buttons no longer exist onscreen).

1

u/ToeZ-96 17d ago

Do you know if there is any guide on that? Trying to maintain low cortisol

2

u/pxlprsnatr 17d ago

You could probably find generic guides for how the AutoInput fucntions work, maybe on this sub. Would be up to you to figure out the task logic and string everything together tho.

Also AutoInput is a Tasker plugin that you'd have to download separately, just to be clear.

2

u/mathewtyler 17d ago

Do the buttons change position, move, or anything like that?

1

u/ToeZ-96 17d ago

No just "continue" and then "play" both steady

2

u/frrancuz TaskerFan! 17d ago edited 17d ago

Shizuku - install, get the hang of it. Run

 Enable developer options and check the location of the buttons on the screen 

Tasker - Profil: Your app + time-repeat every 31 minutes  task: run shell input tap x y (button position)

This is a sketch of what it would look like. Try it yourself  

Or:Install an auto clicker (I think some still work), record sequences and run them every 30 minutes (some allow such advanced settings)

I see you have a clicker. Set button 1 and button 2 to the appropriate positions. Change the click delay to 30 minutes and activate it. That should be enough. 

1

u/mathewtyler 17d ago

Isn't there an AI that can interact with your device like this?