[python-win32] comtypes + mshtml was slow to me, any suggestion?

2014-02-15 Thread Xin Zhao
Hey, I am trying to build a test tool using comtypes and mshtml to handle some applications that have IE activex control, which renders some logics predefined in an HTML file. But I have two issues: 1. I did from comtypes.client import GetModule and then GetModule('mshtml.tlb'). It took a

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

2010-05-27 Thread Xin Zhao
I missing something? Why does it simply complain that this interface is not supported? It's indeed supported from MSDN document... Thanks, xin On Thu, May 27, 2010 at 11:25 AM, Tim Roberts t...@probo.com wrote: Xin Zhao wrote: Thanks for your kind reply. I tried the new iid, doesn't help

[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

[python-win32] makepy or genpy issue: no get_accChildCount?

2010-01-27 Thread Xin Zhao
Hey, I am trying to use pywin32 to do program automation. Basically, I need to get an IAccessible object and call functions on it. Here is what I did: x = pythoncom.AccessibleObjectFromWindow(3803742, 0, pythoncom.IID_IDispatch) (3803742 is the HWND of an internet explorer window) Then I do: z