Re: [python-win32] How to get IWebBrowser2 from a HWND

2008-07-21 Thread salvatore ventura
and ctypes. I think I am mixing them up in my code and concepts still... thanks again, .salvo --- Ven 18/7/08, Mark Hammond <[EMAIL PROTECTED]> ha scritto: > Da: Mark Hammond <[EMAIL PROTECTED]> > Oggetto: RE: [python-win32] How to get IWebBrowser2 from a HWND > A: "&#

Re: [python-win32] How to get IWebBrowser2 from a HWND

2008-07-18 Thread Mark Hammond
I dug into this a little more, but I'm afraid there isn't much good news to share :( > What I would like to achieve is the IWebBrowser2 object of the > dialog.htm page. I know I can access anything on the page itself via > the IHTMLDocument2 (which I already have) but that's not my need. I ca

Re: [python-win32] How to get IWebBrowser2 from a HWND

2008-07-12 Thread salvatore ventura
)? In other words, how will I be able to debug this? I am somehow new to both python and COM, so sorry if some questions will be silly... thanks a lot! .salvo --- Gio 10/7/08, Mark Hammond <[EMAIL PROTECTED]> ha scritto: > Da: Mark Hammond <[EMAIL PROTECTED]> > Oggetto: R

Re: [python-win32] How to get IWebBrowser2 from a HWND

2008-07-11 Thread Tim Golden
salvatore ventura wrote: Hi, I am trying to get the IWebBrowser2 object from the HWND of an open IE window. [... snip complex code ...] At the risk of oversimplifying matters (and thanks to Roger Upole for providing this snippet which I think I've linked to three times this week!): import w

Re: [python-win32] How to get IWebBrowser2 from a HWND

2008-07-10 Thread Mark Hammond
> # ... and the IWebBrowser2: > ie = pIServiceProvider.QueryService(IWebBrowserApp._iid_, > IWebBrowser2._iid_) > > # which - of course - fails. > > > Error returned: > Traceback (most recent call last): > File "", line 1, in > COMError: (-2147467262, 'No such interface supported', (None, Non