Python

Moderators: None (Apply to moderate this forum)
Number of threads: 474
Number of posts: 1166

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Spellchecker Posted by emcpete on 19 Jun 2004 at 2:46 PM
Hi,

I just started Python so please forgive my "newness".

I need to create a Windows XP program that will spellcheck the word processing screen of a proprietary database program that my office uses.

I don't have access to the database's api or source code so I was thinking that the program could simply spellcheck the active window of whatever program the user is running on their computer.

Can anyone help point me in the right direction for this project?

Thanks in advance.
Report
Re: Spellchecker Posted by infidel on 21 Jun 2004 at 10:44 AM
: Hi,
:
: I just started Python so please forgive my "newness".
:
: I need to create a Windows XP program that will spellcheck the word processing screen of a proprietary database program that my office uses.
:
: I don't have access to the database's api or source code so I was thinking that the program could simply spellcheck the active window of whatever program the user is running on their computer.
:
: Can anyone help point me in the right direction for this project?

Wow, that's tough. You'd definitely need the win32 extension modules to do this. You'll also need a good reference on the win32 API. There are ways of getting handles to particular windows via the API. Assuming you can get a handle to the window you might be able to send some kind of "get text" message to the window to retreive the contents, but if it isn't a standard control then there's no guarantee you're going to get anything or have any luck. It would be much easier to create a standalone spellchecker program and copy/paste the text from the database program to it for spell checking. Someone else may have better suggestions, but probably not here on the Python board.


infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Spellchecker Posted by emcpete on 22 Jun 2004 at 9:16 AM
: : Hi,
: :
: : I just started Python so please forgive my "newness".
: :
: : I need to create a Windows XP program that will spellcheck the word processing screen of a proprietary database program that my office uses.
: :
: : I don't have access to the database's api or source code so I was thinking that the program could simply spellcheck the active window of whatever program the user is running on their computer.
: :
: : Can anyone help point me in the right direction for this project?
:
: Wow, that's tough. You'd definitely need the win32 extension modules to do this. You'll also need a good reference on the win32 API. There are ways of getting handles to particular windows via the API. Assuming you can get a handle to the window you might be able to send some kind of "get text" message to the window to retreive the contents, but if it isn't a standard control then there's no guarantee you're going to get anything or have any luck. It would be much easier to create a standalone spellchecker program and copy/paste the text from the database program to it for spell checking. Someone else may have better suggestions, but probably not here on the Python board.
:
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:


Thanks very much for your response. I will look into the win32 extension.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.