[python-win32] windows text rendering question

2007-01-23 Thread Boris Borcic
Hello, I am trying to use UI Automation to drive an MS Windows app with pywinauto. I need to scrape the app's window contents and use some form of OCR to get at the texts (pywinauto can't get at them). As an alternative to integrating an OCR engine, and since I know the fonts and sizes used to

Re: [python-win32] windows text rendering question

2007-01-23 Thread Tim Roberts
Boris Borcic wrote: I am trying to use UI Automation to drive an MS Windows app with pywinauto. I need to scrape the app's window contents and use some form of OCR to get at the texts (pywinauto can't get at them). As an alternative to integrating an OCR engine, and since I know the fonts

Re: [python-win32] windows text rendering question

2007-01-23 Thread Mark Mc Mahon
Hi, On 1/23/07, Tim Roberts [EMAIL PROTECTED] wrote: I'm surprised you can't get at the window contents. Have you used the spyxx.exe utility to poke through the window structure? Unfortunately there are quite a few controls in software that are either owner drawn or are custom and do not

[python-win32] wrapping objects from a COM server

2007-01-23 Thread Jonathan LaCour
I am writing my first COM Server using the wonderful win32 extensions, and am running into a bit of an annoyance. My COM Server is using a dynamic policy by implementing `_dynamic_` to act as a proxy to some Python modules, very similarly to the Python String wrapper described in the Python

Re: [python-win32] wrapping objects from a COM server

2007-01-23 Thread Mark Hammond
Is there a way that I can automatically have this happen for me, so that `win32com.server.util.wrap` will automatically be called on the way out of a method? It should be possible to have your _dynamic_ method do this for you? Instead of returning the result item, introspect what is returned

Re: [python-win32] wrapping objects from a COM server

2007-01-23 Thread Jonathan LaCour
Mark Hammond wrote: Is there a way that I can automatically have this happen for me, so that `win32com.server.util.wrap` will automatically be called on the way out of a method? It should be possible to have your _dynamic_ method do this for you? Instead of returning the result item,

Re: [python-win32] wrapping objects from a COM server

2007-01-23 Thread Mark Hammond
Mark Hammond wrote: Is there a way that I can automatically have this happen for me, so that `win32com.server.util.wrap` will automatically be called on the way out of a method? It should be possible to have your _dynamic_ method do this for you? Instead of returning the result