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

[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 googl

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] [ma

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 python-win3

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 codebase

[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 a

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 > I think this relates to being late-bound. Anyway, whereas Word's 'Documents'

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 Vista"standard", and we can download o