[python-win32] Wait for a window with a specified title

Ram Rachum ram at rachum.com
Sun May 27 09:36:04 EDT 2018


Hi everyone,

I'd like to use the `wmi` module to detect when a window with the title
"Foo Bar" was created, and then kill the process that created this window.
Is this possible?

(I can do the killing without `wmi`, I just need to ID the process.)

Note that I don't want to be periodically polling for that window, I want
to be listening to an event so there wouldn't be a big delay.


Thanks for your help!
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180527/0136d797/attachment.html>


More information about the python-win32 mailing list