X, Y relative to Pattern

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
flipit
Posts: 1
Joined: 15 Jun 2013 06:48

X, Y relative to Pattern

Post by flipit » 15 Jun 2013 06:55

Hi,
This may be obvious but I've not found it.
I need to evaluate the X, Y position from a click('Pattern') on a screen, so that I can calculate the X, Y position of a Checkbox (ischecked(x,y)) relative to it.
The issue I have is the pattern I'm looking for is in a list so it's position in the list moves.
Thanks
Phill

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

Re: X, Y relative to Pattern

Post by Martin » 15 Jun 2013 07:45

Hi,

It is currently not possible to get the coordinates of an element by name. I will add a new function for this in the next update.
Not sure if this works in your case, but in some lists you can scrollForward or scrollBackward a few times until you reach the start/end of the list and then work with absolute coordinates.

Regards,
Martin

Post Reply