connect to running internet explorer (IE) via shdocvw.dll

dsavitsk dsavitsk at e-coli.net
Sun Jun 23 01:49:44 EDT 2002


if it is for your own use, you can place the VB in a public method of a
class and control that via python and COM.

-d


"Marc Spoorendonk" <marc.spoorendonk at pretection.com> wrote in message
news:3D106564.4040602 at pretection.com...
> This is how my problem can be handled in VB:
>
> Dim SWs As New SHDocVw.ShellWindows
> Dim IE As SHDocVw.InternetExplorer
>
> For Each IE In SWs
>        Set Doc = IE.document
>        If TypeOf Doc Is HTMLDocument Then
>           List3.AddItem Doc.url
>        End If
> Next
>
> The question is simple: How can I accomplish this same thing in Python?
>
> Mark Hammond answered me this by email:
> "I think you will find SHDocVw is a vtable interface, and therefore not
> supported by Python."
>
> I've read up about vtable, COM etc. but I am fairly new to this. (I was
> born as a Unix programmer.)  I've played with the interfaces and
> makepy.py. Should I write a python-plugin in C++ or can it be done by
> native pytoncode?
>
> Regards,
>
> Marc
>





More information about the Python-list mailing list