get message form ie

John J. Lee jjl at pobox.com
Wed Jun 6 18:34:34 EDT 2007


Ashok <ashokagk at gmail.com> writes:

> Hi,
> 
> Is there any way i can get a message form internet explorer into my
> python script when internet explorer completes loading a page?
> 
> _____
> ashok

One way is to use a Browser Helper Object (BHO).

Here's an old script written for old version of ctypes.  I don't
guarantee its correctness or sanity.  It shows how to hook the
BeforeNavigate2 event, but I guess the extension to NavigateComplete2
or whatever is obvious (google for those event names to find
appropriate MS docs).

http://wwwsearch.sourceforge.net/bits/bho_skel.py


John



More information about the Python-list mailing list