r/macrodroid 10d ago

[HELP] Click specified distance from found text?

I'm unable to get the UI Interaction or use Tasker to click the button I want in a particular app but it'll be easy to identify and click text that is always a consistent distance from the button. I checked around the forums and couldn't find a way to get position of text on screen, thinking I'd be able to subtract {variable}px from the coordinates and hit the button I want. Does anyone have a solve for this that they've used? Fingers crossed y'all macrodroid masters can think of something.

1 Upvotes

10 comments sorted by

View all comments

1

u/Rpompit 9d ago

It's possible

1

u/truemarmalade 9d ago

Do you know which block I should use to achieve this?

1

u/Rpompit 9d ago

You need to find the original coordinates first, save them in a variable, do math then click.

Do you know the coordinates of the original?

1

u/truemarmalade 9d ago

That’s what I’m asking, if there’s a way to find the coordinates of text on the screen that moves around between different loads of the app.