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

2008-07-11 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 interactive input, line 1, in module COMError: (-2147467262, 'No such interface supported',

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!): code

[python-win32] ActiveX dll error - Non-modal forms cannot be displayed in this host application

2008-07-11 Thread Rasjid Wilcox
Hi, I have an ActiveX dll that I am trying to use in a Python script. I can dispatch the control, but when I try to runs its 'open' command, I get the following error: Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page. My

Re: [python-win32] ActiveX dll error - Non-modal forms cannot be displayed in this host application

2008-07-11 Thread Mark Hammond
ActiveX DLLs in a raw python.exe program are tricky. I'm guessing you need to use the DLL in a true ActiveX host app - pythonwin is one (see the pywin\demos\ocx directory) and wxPython can also do it (but I'm not sure about how it is done there) Cheers, Mark From: [EMAIL PROTECTED]

Re: [python-win32] parsing outlook email

2008-07-11 Thread Ahmed, Shakir
Hi, I am working on a project where I need to parse incoming emails (Microsoft outlook 2003) with a specific subject into an excel file or a Microsoft access table. Any help is highly appreciated. Thanks sa ___ python-win32 mailing list

Re: [python-win32] parsing outlook email

2008-07-11 Thread Tim Golden
Ahmed, Shakir wrote: Hi, I am working on a project where I need to parse incoming emails (Microsoft outlook 2003) with a specific subject into an excel file or a Microsoft access table. Any help is highly appreciated. You could create an Outlook Add-in. Have a look at the Spambayes

[python-win32] Com and Sapi 4 speech engine, tts commands

2008-07-11 Thread FT
Hi! Has anyone here done any programming on the sapi 4.0A speech engine? I have the sapi 5 and the pytts engines and would like to use the sapi 4 because it has more voices. But found it difficult to find the commands for the connection to the engine since microsoft has gone to 5.3

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-11 Thread jeff sacksteder
With both the actual(MS Word) and simulated(my COM server) configurations, I am returned a generic COM object when trying to use the 'Documents' object. w = Dispatch(Word.Application.8) d = w.Documents d COMObject unknown I think this relates to being late-bound. Anyway, whereas Word's

Re: [python-win32] Com and Sapi 4 speech engine, tts commands

2008-07-11 Thread Michel Claveau
Hi! Perso, I use MS-agents, and I choice an empty character. MS-agents are well knowed et well documented. Empty agent is invisible, but its voice is audible. A problem: on Vista, with non-english (french) voice, only English voices are available with Vistastandard, and we can download only