longclick not working

Post your questions and help other users.

Moderator: Martin

Post Reply
Serum_114
Posts: 59
Joined: 16 Jul 2014 01:28

longclick not working

Post by Serum_114 » 23 Sep 2014 18:46

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)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: longclick not working

Post by Martin » 24 Sep 2014 11:23

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?

Serum_114
Posts: 59
Joined: 16 Jul 2014 01:28

Re: longclick not working

Post by Serum_114 » 24 Sep 2014 11:40

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.
Last edited by Serum_114 on 24 Sep 2014 11:43, edited 1 time in total.

Serum_114
Posts: 59
Joined: 16 Jul 2014 01:28

Re: longclick not working

Post by Serum_114 » 24 Sep 2014 11:43

Sorry, I didn't say:

It's the stock 4.4.4 dialer. I'm using click("5") or longclick("5").

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: longclick not working

Post by Martin » 24 Sep 2014 12:30

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).

Serum_114
Posts: 59
Joined: 16 Jul 2014 01:28

Re: longclick not working

Post by Serum_114 » 24 Sep 2014 13:10

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.

Post Reply