470,618 Members | 1,723 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,618 developers. It's quick & easy.

Spellcheck an application (from below)

It is a database application that has a window where the user can write
letters to patients.
That is the area that I want to spellcheck. Any ideas how I can do this?

Thanks again.
"Peter Hansen" <pe***@engcorp.com> wrote in message
news:TL********************@powergate.ca...
Evan McPeters wrote:
I need to develop a program that will spell check a word processing window that is open in another application. I do not have access to the the API or any other code for this application, so I was hoping that the spell checker could simply do it's job on whatever the user's active window is.

Does this make sense. Does anyone have an idea about how to start this.


What is this 'other application' ?


Jul 18 '05 #1
2 1315
Evan McPeters wrote:
It is a database application that has a window where the user can write
letters to patients.
That is the area that I want to spellcheck. Any ideas how I can do this?

Thanks again.
I need to develop a program that will spell check a word processing windowthat is open in another application. I do not have access to the the API orany other code for this application, so I was hoping that the spell checkercould simply do it's job on whatever the user's active window is.
Does this make sense. Does anyone have an idea about how to start this.

What is this 'other application' ?


Try
http://aspn.activestate.com/ASPN/Coo.../Recipe/117221
http://www.scriptfoundry.com/snake/s...ll/snakespell/

You could use COM if you are on Windows and the users will have MS Word
installed on their system.

There are other ActiveX components available on the web that you can try
if users do not have MS Word installed.
Jul 18 '05 #2
John <jo*******@rediffmail.com> wrote:
Try
http://aspn.activestate.com/ASPN/Coo.../Recipe/117221
http://www.scriptfoundry.com/snake/s...ll/snakespell/


For the spell checking you could use our wrapper for ASpell found at
http://sourceforge.net/projects/uncpythontools.

To get access to the text in your applications text control will be a
trick. Our python tools for using the MS Active Accessibility
interface might be helpful. You can find it at
http://sourceforge.net/projects/uncassist. You can find some notes on
using it at http://www.cs.unc.edu/~parente/tech/tr01.shtml.

If you can find the "handle" for the window, you should be able to
both read and modify the text therein. pyAA will allow you to explore
the tree of window handles to find it.

The pywin32 at http://sourceforge.net/projects/pywin32/ also includes
lots of tools for exploring the Windows interface via COM.

What you have is a tricky Windows API problem, not really a Python
problem. Though I believe you can solve it efficiently with Python.

gb
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Liz | last post: by
reply views Thread by XJ | last post: by
1 post views Thread by delusion7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.