Click here to Skip to main content
15,892,927 members
Articles / Desktop Programming / ATL
Article

A Spell Check IE Menu Extension

Rate me:
Please Sign up or sign in to vote.
2.40/5 (5 votes)
10 Sep 2002CPOL2 min read 104.1K   529   23   21
An IE menu extension that allows you to spell check your form submissions.

Introduction

One of the many things that I have found lacking when using web based forums, such as CodeProject, is the lack of spell checking facilities within IE. So that I can post messages on forums that do not contain spelling mistakes, I created this little tool that allows you to check the spelling of certain words using the Google Spelling API.

Installation

Extract the signed TxtSpell.dll from the ZIP file and install using regsvr32. Visit and register with the Google Spelling API site to get a key to use with the DLL. This key will be stored in the registry under HKEY_CURRENT_USER\Software\Many Monkeys Limited\SpellChecker\Google. The object will ask you for the key when it requires it, so keep it to hand.

Usage

Once installed, the Spell Checker is easy to use. Select a word or words (up to 10) in the form that you wish to check the spelling of and select the Spell Check option from the context menu.

Image 1

If Google decides that the words are incorrect then a new set of words will be returned and will be used to replace the currently selected text.

Image 2

If there is an error, that maybe attributed to an incorrect or missing key (not 100%). Then the following install screen will popup. This install window can be used to install a new key and check if it works.

Image 3

References

Limitations

  • Sometimes the install screen appears when the error is not due to an incorrect key but a problem with the Google service. However these are very rare.
  • The number of words that can be checked in one go is 10. This limit is imposed by the Google web service.
  • If all the words are correct or appear to be, then Google returns no answer and this is currently interpreted to be an error.

Future work

It is intended to use a different spell checking mechanism that will allow the user to select from a collection of words when a mis-spelt word is found. It is also intended to provide source code once I have integrated another spell checking mechanism such that there would be more than a few lines of non-wizard code.

I hope you find this tool useful. Please feel free to comment and offer suggestions.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Employed (other) Purplebricks
Australia Australia
All articles are supplied as-is, as a howto on a particular task that worked for me in the past. None of the articles are supposed to be out-of-the-box freeware controls and nor should they be treated as such. Caveat emptor.

Now living and working in Australia, trying to be involved in the local .NET and Agile communities when I can.

I spend a good chunk of my spare time building OpenCover and maintaining PartCover both of which are Code Coverage utilities for .NET.

Comments and Discussions

 
Generalspell check Pin
pure_m2314-Sep-04 1:16
pure_m2314-Sep-04 1:16 
GeneralProblem with Spell Check -- Request Not Going To Google Web API Pin
Vasudevan Deepak Kumar16-Dec-02 3:03
Vasudevan Deepak Kumar16-Dec-02 3:03 
GeneralRe: Problem with Spell Check -- Request Not Going To Google Web API Pin
Shaun Wilde16-Dec-02 11:05
Shaun Wilde16-Dec-02 11:05 
Generalregsvr32 error... Pin
tptorpey11-Dec-02 3:28
tptorpey11-Dec-02 3:28 
GeneralRe: regsvr32 error... Pin
11-Dec-02 5:09
suss11-Dec-02 5:09 
QuestionRe: regsvr32 error... Pin
Robert Wang198320-Nov-06 18:50
Robert Wang198320-Nov-06 18:50 
QuestionDidn't work for me..Did I miss something? Pin
Kant12-Sep-02 16:44
Kant12-Sep-02 16:44 
AnswerRe: Didn't work for me..Did I miss something? Pin
Shaun Wilde12-Sep-02 21:33
Shaun Wilde12-Sep-02 21:33 
GeneralRe: Worked...I used the "COM Explorer"... Pin
Kant13-Sep-02 6:00
Kant13-Sep-02 6:00 
GeneralRe: Worked...I used the "COM Explorer"... Pin
Shaun Wilde13-Sep-02 10:19
Shaun Wilde13-Sep-02 10:19 
GeneralRe: http://www.4dev.com Pin
Kant15-Sep-02 5:24
Kant15-Sep-02 5:24 
GeneralRe: http://www.4dev.com Pin
Shaun Wilde15-Sep-02 11:34
Shaun Wilde15-Sep-02 11:34 
GeneralMaybe I should use a grammer checker instead Pin
Shaun Wilde11-Sep-02 21:25
Shaun Wilde11-Sep-02 21:25 
QuestionSource code? Pin
Todd Jeffreys11-Sep-02 15:05
Todd Jeffreys11-Sep-02 15:05 
AnswerRe: Source code? Pin
ColinDavies11-Sep-02 15:12
ColinDavies11-Sep-02 15:12 
GeneralRe: Source code? Pin
Shaun Wilde11-Sep-02 21:22
Shaun Wilde11-Sep-02 21:22 
Hi - I didn't provide the source as there was nothing really new in it.

  • I posted the link on how to register a Menu Extension.
  • I posted a link to the Google APIs - which I found as a comment to one of the other spell checking articles on this site.
  • There is nothing clever in using the res: protocol - The google bar does that.
  • The ATL wizards did most of the work - eg I added the .wsdl file and a header file was created automatically for it. The only complicated things was thinking of what names to use for the dll, class and method.

    I added method called SpellCheck and then I typed 3 lines of code that did the work.
    The rest of the code is just Key support and registry access - it took less than 4 hours to write and I was watching a double episode of 'Stargate' and some dodgy home video program while supping a beer, and waiting for Google to respond with my copy of the Key. (maybe the beer supping is why I haven't posted the code Smile | :) ). I signed the DLL as an experiment to make sure I could remember how to still do it.

    I posted the tool as that is what it is - a tool. I am going to be fairly busy the next few weeks and I didn't want to forget - as I have on lots of little bits and pieces that are on my TODO list.

    Maybe I should have created a HowTo instead and I may do that but I thought people may want to use the tool now rather then wait until I get time to write a more complete article.

    Stupidity dies.
    The end of future offspring.
    Evolution wins.
    - A Darwin Awards Haiku


    GeneralRe: Source code? Pin
    ColinDavies11-Sep-02 21:41
    ColinDavies11-Sep-02 21:41 
    GeneralRe: Source code? Pin
    Shaun Wilde11-Sep-02 22:01
    Shaun Wilde11-Sep-02 22:01 
    AnswerRe: Source code? Pin
    Nish Nishant11-Sep-02 15:32
    sitebuilderNish Nishant11-Sep-02 15:32 
    GeneralRe: Source code? Pin
    Michael Dunn11-Sep-02 20:46
    sitebuilderMichael Dunn11-Sep-02 20:46 
    GeneralRe: Source code? Pin
    ColinDavies11-Sep-02 21:36
    ColinDavies11-Sep-02 21:36 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.