[python-win32] Using WMI to listen to window creation and destruction
Ram Rachum
ram at rachum.com
Thu Jul 19 01:01:06 EDT 2018
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 <timr at probo.com> wrote:
> 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 within the Explorer process.
>
> What are you REALLY trying to do? What's the overall goal? Explorer
> has an extensive shell extension interface that let you participate in
> many actions, but opening new folders is not one of them.
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/cc144067
>
> Remember, you can open a new folder without opening a new window
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180719/3034f57e/attachment-0001.html>
More information about the python-win32
mailing list