I am looking for an API, regardless of the technology on which it is based, that is able to detect that a graphical window has been opened by the user.
It must then be able to associate data to this window, such as the name of the associated software.
Then, the API would have to do the same with the main widgets in this window (buttons, text fields, etc.).
Does it exist or will I have to develop it?