[python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-26 Thread Xin Zhao
Hey, I am trying to get the Dispatch object of IHTMLDocument3, so I wrote the following code wo = pythoncom.New('InternetExplorer.Application') wo.QueryInterface('{3050F673-98B5-11CF-BB82-00AA00BDCE0B}') But got the following error: pywintypes.com_error: (-2147467262, 'No such interface

[python-win32] Please help! How to get the event handler with IE Dom interfaces?

2010-05-26 Thread Xin Zhao
Hey all, I am using pywin32 code get all event handlers defined in a HTML page in IE. I used pythoncom to start IE, then get document, and finally reached IHTMLElement object. If the html page defines onclick=xxx, element.onclick returns the click handler. However, if an event handler is