<div dir="ltr">I'm trying to make a script that goes to recently opened folders, by listening to which folders were opened and closed.<div><br></div><div>I guess I'll use good old EnumWindows. Thanks for your help Tim.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 19, 2018 at 12:23 AM, Tim Roberts <span dir="ltr"><<a href="mailto:timr@probo.com" target="_blank">timr@probo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Ram Rachum wrote:<br>
> "Are you really looking to monitor the creation of new top-level<br>
> windows, which means the creation of new processes?"<br>
><br>
> Does that apply to explorer windows? (i.e. when you open a new<br>
> folder.) Because that's what I'd like to listen to.<br>
<br>
</span>No.  Those are just subwindows opened within the Explorer process.<br>
<br>
What are you REALLY trying to do?  What's the overall goal?  Explorer<br>
has an extensive shell extension interface that let you participate in<br>
many actions, but opening new folders is not one of them.<br>
<br>
    <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/cc144067" rel="noreferrer" target="_blank">https://msdn.microsoft.com/en-<wbr>us/library/windows/desktop/<wbr>cc144067</a><br>
<br>
Remember, you can open a new folder without opening a new window<br>
<div class="HOEnZb"><div class="h5"><br>
-- <br>
Tim Roberts, <a href="mailto:timr@probo.com">timr@probo.com</a><br>
Providenza & Boekelheide, Inc.<br>
<br>
______________________________<wbr>_________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-win32</a><br>
</div></div></blockquote></div><br></div>