COM automation, Internet Explorer, DocumentComplete event

Graham Fawcett graham.fawcett at gmail.com
Tue Jan 10 15:24:12 EST 2006


puff wrote:
> I'm able to catch IE's events including DocumentComplete with:
>
>     def OnDocumentComplete(self, pDisp, URL):
>
> so i have pDisp.  Self is the object returned by:
>
>         self.ie = DispatchWithEvents("InternetExplorer.Application",
> InternetExplorerEvents)
>
> that created the automation object.  How do I perform the test in
> Python?

This recipe might give you some clues; you can use the Busy attribute,
instead of a DocumentComplete handler:

http://herlock.com/ob/pythoncb/0596007973/chp-10-sect-15.html

Graham




More information about the Python-list mailing list