Page 1 of 1
longclick not working
Posted: 23 Sep 2014 18:46
by Serum_114
I'm trying to make a flow to dial a pin once I've called a specific number. The Control UI click is too fast & longclick does nothing.
Nexus 5 4.4.4 (using ART)
Re: longclick not working
Posted: 24 Sep 2014 11:23
by Martin
Maybe the user interface does not allow other apps to invoke the long-click without real user interaction. I would like to reproduce this one, could you please explain in more detail which control you want to long-click under what circumstance?
Re: longclick not working
Posted: 24 Sep 2014 11:40
by Serum_114
Hi Martin,
Thanks for the reply.
My flow is triggered by a call to voicemail, there is a 5 second sleep then a control UI action to dial the PIN. If I use click the numbers get dialed but the tones are too brief to register with my carrier's IVR. If I use longclick, nothing happens.
Re: longclick not working
Posted: 24 Sep 2014 11:43
by Serum_114
Sorry, I didn't say:
It's the stock 4.4.4 dialer. I'm using click("5") or longclick("5").
Re: longclick not working
Posted: 24 Sep 2014 12:30
by Martin
I was able to reproduce it. The dialer only supports the regular click action for tools that use the accessibility service. There's nothing I can do about it in Automagic.
If your device is rooted, you could try to use action Execute Root Command: input swipe <x1> <y1> <x2> <y2> <duration in ms>, for example Execute Root Command: input swipe 500 700 500 700 1000 (untested).
Re: longclick not working
Posted: 24 Sep 2014 13:10
by Serum_114
Thanks for looking into it Martin.
I don't think I'll be trying swipe as having to adjust the flow if the dialer's layout moves up or down - not to mention finding the coordinates in the first place - defeats the extreme lazyness of this flow.