bounds coordinates?
Moderator: Martin
bounds coordinates?
can someone tell me what the four numbers are when using bounds("some text string") with control UI? There are so many possible meanings!
- digitalstone
- Posts: 342
- Joined: 21 Oct 2017 12:36
- Location: The Netherlands
Re: bounds coordinates?
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+)"
"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)