Thomas Heller wrote: > Fortunately, with a little bit browsing through the comtypes.gen.MSHTML module > (really the comtypes.gen._3050F1C5_98B5_11CF_BB82_00AA00BDCE0B_0_4_0 module) > and guessing I found that both the HTMLDocumentEvents or HTMLDocumentEvents2 > interface seems to work, you just have to pass that interface to > GetEvents/ShowEvents. > > This script works for me:
Thanks. I'm sure I tried HTMLDocumentEvents2 before, but I must have had something else wrong at the same time and so I moved on to trying the other interfaces. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users