[python-win32] getting a list of internet explorer instances?
Marcus Goldfish
magoldfish at gmail.com
Thu Jul 21 04:01:12 CEST 2005
> import win32com.client
> sw=win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}')
> for w in sw:
> print w.LocationURL
>
> The GUID represents the ShellWindows class, found in
> the makepy file for "microsoft internet controls".
Yes, that helps a lot! Can you explain the ShellWindows class a
little more, or point me to a URL reference?
Also, for others interested in this problem, I found two recipes in
the Python cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305273 (long)
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/269345
(similar to this solution)
Thanks,
Marcus
More information about the Python-win32
mailing list