ID:2072262
 
(See the best response by Nadrew.)


Problem description:

How can I do that if players click on input while input is located on main map mouse click would read it.

Example: Once I click on input the chat window would appear or other proc/vars I would like to change would change.



Best response
There's no detection event for when an element gains focus, the best you can do is either manually control focus and handle things when focus is shifted in the code, or have a loop running that's always doing a winget() for the focus of that input, which could end up getting pretty costly on the resource side of things if you check too often.
Might need to be a little more specific about this Phat maybe show some code aswell.