• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How do I simulate a long press on the middle of my screen?

SampsonNation

Well-Known Member
Aug 4, 2012
107
23
Hey everyone,

I have a OnePlus 7T phone. I installed Tasker and AutoInput. I'm trying to create a task that will press and hold a large button in the middle of the screen which will remote start my car. I need to hold the button for about 5-10 seconds before letting go.

I have tried AutoInput Gestures with the same x,y coordinates on both the Start and Stop position to create a simulated long press. I've even tried Autoinput Action with Long Press. None of these things have worked.

I would try a Shell script, but I know nothing about it.

Btw, I'm not rooted and don't plan on doing that to my phone.

How can I achieve what I want to do?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones