[python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Ram Rachum
Hello, I'd like to use the `wmi` module to be notified on the events of a window being created or destroyed. Is this possible? I looked at the tutorial and cookbook and could find many interesting things, but not that. Thanks, Ram. ___ python-win32 mai

Re: [python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Tim Roberts
Ram Rachum wrote: > > I'd like to use the `wmi` module to be notified on the events of a > window being created or destroyed. Is this possible? I looked at the > tutorial and cookbook and could find many interesting things, but not > that. I don't think WMI provide information about windows, altho

Re: [python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Ram Rachum
"Are you really looking to monitor the creation of new top-level windows, which means the creation of new processes?" Does that apply to explorer windows? (i.e. when you open a new folder.) Because that's what I'd like to listen to. On Wed, Jul 18, 2018 at 9:45 PM, Tim Roberts wrote: > Ram Rach

Re: [python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Tim Roberts
Ram Rachum wrote: > "Are you really looking to monitor the creation of new top-level > windows, which means the creation of new processes?" > > Does that apply to explorer windows? (i.e. when you open a new > folder.) Because that's what I'd like to listen to. No.  Those are just subwindows opened

Re: [python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Ram Rachum
I'm trying to make a script that goes to recently opened folders, by listening to which folders were opened and closed. I guess I'll use good old EnumWindows. Thanks for your help Tim. On Thu, Jul 19, 2018 at 12:23 AM, Tim Roberts wrote: > Ram Rachum wrote: > > "Are you really looking to monito