Post

Replies

Boosts

Views

Activity

Reply to Getting precise text position with Swift for MacOS
Sure! Thanks for your question @Claude31. It's any text that may appear on screen. For example whenever the word "Happy" appears in screen I want to place an overlay with the emoji: 😄. It's not always an NSTextField, but I'm able to always detect the desired word as an AXUIElement, and the window in which the word (Happy) is contained. Also I was able to place the overlay without any issues. The problem is that I'm not able to get the proper position of the text element inside the window that contains the word. Leaving an image as an example, the emoji should be placed on top of the word "Happy" but due to me not being able to get the correct position it's placed elsewhere. Thanks again!
23h