bounds coordinates?

Post your questions and help other users.

Moderator: Martin

Post Reply
Econdoc
Posts: 153
Joined: 28 May 2016 20:06

bounds coordinates?

Post by Econdoc » 16 Apr 2018 21:26

can someone tell me what the four numbers are when using bounds("some text string") with control UI? There are so many possible meanings!

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: bounds coordinates?

Post by digitalstone » 16 Apr 2018 22:26

In the help-section it says this (It's pretty much identical to the help feature inside Automagic itself):

"List getBounds(String pattern)
Returns the bounds of the element containing the given glob pattern in a list with the values [x, y, width, height].
List getBoundsById(String id)
Returns the bounds of the element with the given id in a list with the values [x, y, width, height]. (Android 4.3+)"
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

Econdoc
Posts: 153
Joined: 28 May 2016 20:06

Re: bounds coordinates?

Post by Econdoc » 17 Apr 2018 00:10

Thanks!

Post Reply