tim roberts eqemprobocom daniel gonçalves wrote hi need find selected files windows explorer window another program id look window last focus found something following page trick httpblogsmsdncomoldnewthingarchive20040720188696aspx however python im competent python programmer win32 com like somewhat outside competences wow thats fairly amazing takes 9 different com interfaces get information one know something similar python maybe pythonic way unfortunately pythonic task windows task give hints get started going tedious task lots trial error import pywintypes import win32comclient clsid_shellwindows pywintypesiid 9ba05972f6a811cfa44200a0c90a8f39 win32comclientdispatch clsid_shellwindows rangeocount print oitem0name iid_shellwindows interface use ocount find many windows oitemi return window collection one time youll need query appropriate subinterfaces hope dispatch interfaces used python might tempted take c code make simple extension dll perhaps mark tim golden better hints tim roberts eqemprobocom providenza boekelheide inc _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 152132 0700 pythonwin32 finding selected file windows explorer