Touchscreen simulations on Android

I would like to create a simple Android application that automates some processes that occur in different applications that I do not have under my control at all. Is there a way to get pixel color and simulate a touch screen when the application is running in the background?

Let's say I want to wait for a specific pixel to turn red ( #FF0000), can I use GetPixel(x,y)to get the color and then simulate the touch screen event, for example, swipe the screen?

I tried to do this Google, but I have nothing useful, and now I'm pretty desperate.

+4
source share
1 answer

I had to look a bit for this. I also searched for this solution.

NO RETURNS REQUIRED FOR THIS: If you want to repeat the sequence of steps, for example, fill out the form, repeat the steps of the game because re-loading is boring, you can try: FREP Android application from the Play Store (link).

If you want to add conditional scenarios, for example, when you play Clash of Clans with home Wi-Fi, turn on the data automatically and turn off Wi-Fi (since Airtel Wifi in India is unpredictable and can make you free the clan war!), Macro Droid from Play Market.

: Mahiro Tasker, . , /​​ , Tasker.

+1

All Articles