Yes thats why i wrote "infinite" in between - " -I don't want an infinite press; it would be enough to hold for a specific number of seconds.
Use UI interaction GestureHello, 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.
Good idea. Makes sense!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.Use UI interaction Gesture
Example
Start X 100
Start Y 100
End X 101
End Y 101
Duration 10000 ms
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?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.
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 50msHello, 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.
Can you explain this a little more clearly?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
sorry, English is not my First Language. basically make a do/while action and the timeout is too little (50ms) so the macro will continuously long-clickingCan you explain this a little more clearly?