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

2008-07-12 Thread Mark Hammond
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

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

2008-07-12 Thread FT
Hi Michel, I am not sure what you are talking about. I suspect your referring to the Microsoft Sapi 5 stuff, are you? I am looking into the sapi 4 only for the extra voices. I do have a working Sapi 5 model but have not done a dictionary list for it unless I use the existing ones.

[python-win32] scripting pythonwin

2008-07-12 Thread bob gailer
How can I learn to script pythonwin? I'd like to start with a script that would open an existing .py file in an edit window, then do various things such as: set the window size and position scroll the text position the cursor size the class pane position the splitter Any pointers are

Re: [python-win32] scripting pythonwin

2008-07-12 Thread Mark Hammond
How can I learn to script pythonwin? I'd like to start with a script that would open an existing .py file in an edit window, then do various things such as: set the window size and position scroll the text position the cursor size the class pane position the splitter Any

Re: [python-win32] scripting pythonwin

2008-07-12 Thread Stef Mientki
bob gailer wrote: How can I learn to script pythonwin? I'd like to start with a script that would open an existing .py file in an edit window, then do various things such as: set the window size and position scroll the text position the cursor size the class pane position the splitter

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

2008-07-12 Thread jeff sacksteder
If I can get an understanding of how these collections work on the Python side vs the COM side, I'll be make some progress. So what is you question? How do I create a COM server that emulates the COM interface of MS Word? Specifically, returning this 'Documents' collection in what ever is the

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

2008-07-12 Thread Mark Hammond
How do I create a COM server that emulates the COM interface of MS Word? Specifically, returning this 'Documents' collection in what ever is the proper form. That is a very tough question - I doubt many people are familiar enough with the implementation details of Word to know for sure. Much

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

2008-07-12 Thread salvatore ventura
Hi Mark, Tim, thanks for the prompt responses. Tim, the code you suggest does not help me in this context, as it is not able to 'see' the HWND of the modal popup as an IE (ShellWindow) one. In fact, that code is only able to get the main IE app window. Mark, I tried what you suggest, two

Re: [python-win32] scripting pythonwin

2008-07-12 Thread bob gailer
Stef Mientki wrote: bob gailer wrote: How can I learn to script pythonwin? I'd like to start with a script that would open an existing .py file in an edit window, then do various things such as: set the window size and position scroll the text position the cursor size the class pane

Re: [python-win32] scripting pythonwin

2008-07-12 Thread Marcus Low
Bob, Do you mean u want to control pythonwin ide itself as somekind of automation? Else whether its MFC or wxPython, those are for you to develop windows native like apps where u get to do all those thing that u list. If you want to control pythonwin, then its another story. Marcus. bob

Re: [python-win32] scripting pythonwin

2008-07-12 Thread bob gailer
Marcus Low wrote: Bob, Do you mean u want to control pythonwin ide itself as somekind of automation? Yes. I already accomplished my first goal based on what Mark told me, a program to open, size position 5 py file edit windows - something I was doing by hand each time I started the IDE.