开发者

spy on events from another app?

开发者 https://www.devze.com 2023-02-11 19:40 出处:网络
开发者_运维百科for example, open media player to play movie. i would like to catch event \"window is mapped\", \"movie is finished\", etc, and hang handler on it. it is interesting at least to know wh
开发者_运维百科

for example, open media player to play movie. i would like to catch event "window is mapped", "movie is finished", etc, and hang handler on it. it is interesting at least to know where such thing is more convenient to do: on Windows or Linux? And of course, if there is experience or any ideas, please share


Whichever the OS, there are some low-level events you might be able to observe (like window moved), but such high-level "events" like "movie is finished" are not something that the OS can tell you: the application itself has to notify you through whatever means. If it doesn't make these things public there's almost no way you could possibly react to something like this in a generic manner.

0

精彩评论

暂无评论...
验证码 换一张
取 消