Timed Click

fahriy81

New member
Hello, Is there a way to set a duration for actions like click or long click in an interface interaction? For example,
I want to perform a click for 10 seconds.
 

Shiffo

Active member
Sadly thats not possible. Many people are asking for that feature, i wonder if it's possible for an android app to simulate a human "infinite" long press
 

Shiffo

Active member
I don't want an infinite press; it would be enough to hold for a specific number of seconds.
Yes thats why i wrote "infinite" in between - " -
Perhaps the more accurate word wwas"indefinite" long Click?
Its only possible to do click and normal long Click.
 

Shiffo

Active member
Use UI interaction Gesture
Example
Start X 100
Start Y 100
End X 101
End Y 101
Duration 10000 ms
Good idea. Makes sense!

Edit: I just tested it and actually works O.O There's been lots of people asking for this feature recently
 
Last edited:

fahriy81

New member
Use UI interaction Gesture
Example
Start X 100
Start Y 100
End X 101
End Y 101
Duration 10000 ms
I’m trying to do this, but the tablet interprets it as a double-tap. It doesn’t work as intended. I think it happens because I lift my finger and tap again while swiping.
 

fahriy81

New member
I'm trying to access my car's hidden menu, which requires pressing a button for 10 seconds. However, MacroDroid doesn't have an option to set the click duration, so I'm attempting to use a swipe action instead. The problem is that the swipe action seems to disrupt the click interaction, and it doesn't work as intended.
 

md_sgf

Active member
Found "Click with Duration" in tasker plugin AutoInput (Actions V2). But seems like can only click on text on screen, not coordinates. But you might be able to get it to work using that?

Ps: I hope this doesn't sound like another plug for this plugin! 😄
 
Last edited:

MacroDroidDev

Administrator
Staff member
Just to be clear in terms of what the Android Accessibility service can do (which is what this uses) there is no such thing as clicking for a certain duration. You can click or long click and that is it.

Anything else has to be done with a gesture faking some long running screen touch.
 

Qarboz

Well-known member
Just to be clear in terms of what the Android Accessibility service can do (which is what this uses) there is no such thing as clicking for a certain duration. You can click or long click and that is it.

Anything else has to be done with a gesture faking some long running screen touch.
Possibly you could insert the "click with settable duration" that simulates a gesture with coordinates near the origin point? Or, alternatively, the gesture that starts from a text/id/etc. and ends with coordinates relative to the starting point?
 

MRlooney

Member
Hello, Is there a way to set a duration for actions like click or long click in an interface interaction? For example,
I want to perform a click for 10 seconds.
just a normal do/while action with normal long click action, the trick here is defining the delay between each click. from what I tested there is a certain delay value for the screen if delay you entered is higher than it the screen will treat it as 2 consecutive clicks, but if the delay is lower, the screen will treat is as one singular click. you should do some testing, to determine this duration, I would say start from 50ms
 
Top