How can my application be notified when moving a window belonging to another application?

My app provides an online title display poker room. It overlay information on top of the poker table window.

Currently, my application uses the Accessibility API to determine the location and size of a poker table window. He polls once a second. Is there a way to do this with notifications, not polling?

+3
source share
1 answer

I don’t know myself, but look at https://github.com/kballard/NotificationWatcher for a tool that displays all the workspace and distributed notifications. If there is a notification for listening, you can find it using this tool.

+1
source

Source: https://habr.com/ru/post/1791863/


All Articles