Page 1 of 1
click function not working
Posted: 13 Apr 2014 10:09
by the_pathfinder
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?
Re: click function not working
Posted: 14 Apr 2014 20:06
by Martin
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
Re: click function not working
Posted: 15 Apr 2014 10:35
by the_pathfinder
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.
Re: click function not working
Posted: 28 Apr 2014 16:22
by the_pathfinder
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.
Re: click function not working
Posted: 28 Apr 2014 19:27
by Martin
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.