click function not working

Post your questions and help other users.

Moderator: Martin

Post Reply
the_pathfinder
Posts: 7
Joined: 28 Mar 2014 23:48

click function not working

Post by the_pathfinder » 13 Apr 2014 10:09

I am trying to script an application. The info tool tells me that a particular screen field has the click property and scrollforward and scrollback properties. The scrolls work but the click doesn't. Any ideas?

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

Re: click function not working

Post by Martin » 14 Apr 2014 20:06

Hi,

I assume that manually clicking the button works? Which app/button do you want to click?
Perhaps there is another element on screen with the same text or the coordinates of the button changed. Are you using the click-function using a text? If yes, please try to use the click-function using coordinates.

Regards,
Martin

the_pathfinder
Posts: 7
Joined: 28 Mar 2014 23:48

Re: click function not working

Post by the_pathfinder » 15 Apr 2014 10:35

Thanks for the quick response. The app is Logitec Harmony Link universal remote. The element has no name tag, just coordinates, and yes it works if manually touched. I guess I can try pausing the flow and see if the coordinates change, but the scrolls still work from the flow.

the_pathfinder
Posts: 7
Joined: 28 Mar 2014 23:48

Re: click function not working

Post by the_pathfinder » 28 Apr 2014 16:22

Used info tool from flow and coordinates didn't change. Field still shows click function available but still not working from flow. I'm stumped.

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

Re: click function not working

Post by Martin » 28 Apr 2014 19:27

Unfortunately I don't have a Harmony so I'm not able to test it properly. Can you please post a screenshot of the screen in question with the Info-overlay of action Control UI showing? Perhaps the screen of the Harmony app does not use regular button controls but paints each control on it's own (green border of the overlay would not enclose each button). If this is the case, then there's not much I can do in Automagic to click on the button in question, the click would most likely go to the background of the window.

Is your device rooted? If yes, you could use an action Execute Root Command: input tap x y to click the coordinate. You can find the coordinates by turning on 'Pointer location' in the developer settings of your device.

Post Reply