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
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 supporte
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
defin
r not found.', None, None)
---
Am I missing something? Why does it simply complain that this interface is
not supported? It's indeed supported from MSDN document...
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 too