[python-win32] Using Flexible Win32 message pump to monitor window open/close for all application?

reckoner reckoner at gmail.com
Thu Mar 31 01:05:54 CEST 2011


Hi,

I have been looking at the following recipe:

Recipe 82236: Flexible Win32 message pump using 
MsgWaitForMultipleObjects (Python)
http://code.activestate.com/recipes/82236-flexible-win32-message-pump-using-msgwaitformultip

Which is listed in the Python cookbook, second edition. Is it possible 
to use this to monitor the open/close of different windows? Basically, I 
would like to trigger an action for a specific window or handle when 
that window class or handle opens/closes. Can this recipe help with 
that? Any ideas on getting started with this?

Thanks!




More information about the python-win32 mailing list