Spell Checker
I need to design a "Spellex for Word and Abbreviation Expander" for Microsoft Windows,
The aim of this application is to replace abbreviations and partial words with their fully expanded forms. This will operate in conjunction with Windows applications by replacing text in the current active program with the word or expansion indicated by the user.
This application has to be compatible with as many Windows applications as possible, including (but not limited to) Internet Explorer, MS Office, OpenOffice, other Win32 Word Processors, Notepad, etc.
Can someone suggest me anything :(. I am in under tremendious pressure
# 1 Re: Spell Checker
And you need suggestions on which direction? What I can tell is this kind of applications looks like a candidate for a windows service, but you have to explain what kind of help you need.
cilu at 2007-11-10 23:18:20 >

# 2 Re: Spell Checker
The biggest problem which I am facing is, such applications are designed for customized word editors like Microsoft Word, Editplus etc.
The client want it in such a way that it should work all Microsoft Based word editors like MS Word, Notepad, Wordpad etc. and even the tougher challange is.....
The user types a partial word or abbreviation.
My application should Highlights a word in a text input field in the currently active program.
The applications on-screen interface will suggest possible abbreviations (with their expanded forms) as well as words or phrases from a dictionary file that might complete what the user is attempting to type.
Now I really don't know how will i accompalish this particular feature. Should I use some kind of hook which will track down keyboard input and then do its job or is there any VC++/MFC function which can do that.
I am totally messed up :(
# 3 Re: Spell Checker
I'm not sure I realized what your problem is, because I think you can just get the HWND of the active control, and manage it's text with the ordinary window/edit control functions(GetWindowText, EM_GETSEL message etc).
Yofi at 2007-11-10 23:20:25 >

# 4 Re: Spell Checker
I'm not sure I realized what your problem is, because I think you can just get the HWND of the active control, and manage it's text with the ordinary window/edit control functions(GetWindowText, EM_GETSEL message etc).
That is the case if i am developing my own text editor for spell checking but suppose my utility or service is running on the background and someone is working or notepad or a wordpad or ms word, be it any other Microsoft's editor and while typing i want my service / utility to detect a partial word or abbreviation, immediately it search in the dictionary and suggest its expanded form, how will i do that??
# 5 Re: Spell Checker
Look, for standard edit/rich edit controls such as notepad/wordpad, you can use WM_GETTEXT message to get its content, eventhough it's not in your own process.
For other editors like ms-word, I have no idea, sorry.
Yofi at 2007-11-10 23:22:23 >

# 6 Re: Spell Checker
OK I did an intense research and still have'nt got any clue yet. Lets make it simpler.
I am writing something anywhere in window
example: wordpad, notepad, IE address bar or even visual studio editor.
The moment I type letter 't', just below that letter my service should search from database and find all the expansions like 'the', 'there', 'their' etc on a drowdown list and let me select the word from that dropdown list.
I have even attached the screenshot. please go through it, that will make you understand much better what I am looking for.
Please help me?:(
Thanks in advance
# 7 Re: Spell Checker
Check out this web page:
www.keylogger.org (www.keylogger.org/articles.cgi?in=Keyboard_Hook&id=6)
The person explains how a system-wide hook works, how to write the dll, etc, and at the bottomof the article there is downloadable source code to a system-wide hook written in VC 6.0. This should help at least with one of the hurdles, which is trapping the keys to begin with.
Judging by the name of the website, if you contact them they might also be able to provide hints on how to implement the application that uses the hook dll.