Click here to Skip to main content
Licence CPOL
First Posted 10 Sep 2002
Views 79,154
Bookmarked 20 times

A Spell Check IE Menu Extension

By | 10 Sep 2002 | Article
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.

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.

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.

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)

About the Author

Shaun Wilde

Architect

United Kingdom United Kingdom

Member

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.
 
Been involved in programming from the early '80s. First on my Spectrum, then an Amstrad. Did lots of Fortran while at University before becoming involved in Forth, Prolog, Pascal, Occam, C and eventually C++. Eventually started programming on the Windows platform using Borland’s OWL framework, during my postgraduate years. When I started work in '94, I learnt MFC followed by COM and ATL and never looked back. Now working exclusively in .NET, working on WinForms, ASP.NET and the Compact Framework using C# and VB.NET. Using every bit of the .NET framework I can such as WebServices and writing my own controls for my .NET Portal, and for the Compact Framework. Still lots I don't know, but the end of the universe hasn't happened yet - I wonder if I'll have time?
 
I was a permanent employee for a number of companies until Dec 2000 before going independent after the DotCom I ws involved with went DotBomb. Now supplying consulting services to various institutions in London and surrounding regions i.e. UK Smile | :) .
 
Now living and working in Australia, trying to be involved in the local .NET and Agile communities. Also maintaining an open source code coverage tool called PartCover whilst thinking of developing a new one.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalspell check Pinmemberpure_m231:16 14 Sep '04  
GeneralProblem with Spell Check -- Request Not Going To Google Web API PinmemberDeepak Kumar Vasudevan3:03 16 Dec '02  
GeneralRe: Problem with Spell Check -- Request Not Going To Google Web API PinmemberShaun Wilde11:05 16 Dec '02  
Generalregsvr32 error... Pinmembertptorpey3:28 11 Dec '02  
GeneralRe: regsvr32 error... PinmemberShaun Wilde5:09 11 Dec '02  
QuestionRe: regsvr32 error... PinmemberRobert Wang198318:50 20 Nov '06  
QuestionDidn't work for me..Did I miss something? PinmemberKant16:44 12 Sep '02  
AnswerRe: Didn't work for me..Did I miss something? PinmemberShaun Wilde21:33 12 Sep '02  
GeneralRe: Worked...I used the "COM Explorer"... PinmemberKant6:00 13 Sep '02  
GeneralRe: Worked...I used the "COM Explorer"... PinmemberShaun Wilde10:19 13 Sep '02  
GeneralRe: http://www.4dev.com PinmemberKant5:24 15 Sep '02  
GeneralRe: http://www.4dev.com PinmemberShaun Wilde11:34 15 Sep '02  
GeneralMaybe I should use a grammer checker instead PinmemberShaun Wilde21:25 11 Sep '02  
QuestionSource code? PinmemberTodd Jeffreys15:05 11 Sep '02  
AnswerRe: Source code? PinmemberColin^Davies15:12 11 Sep '02  
GeneralRe: Source code? PinmemberShaun Wilde21:22 11 Sep '02  
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? PinmemberColin^Davies21:41 11 Sep '02  
    GeneralRe: Source code? PinmemberShaun Wilde22:01 11 Sep '02  
    AnswerRe: Source code? PineditorNishant S15:32 11 Sep '02  
    GeneralRe: Source code? PinsitebuilderMichael Dunn20:46 11 Sep '02  
    GeneralRe: Source code? PinmemberColin^Davies21:36 11 Sep '02  

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

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

    Permalink | Advertise | Privacy | Mobile
    Web01 | 2.5.120529.1 | Last Updated 11 Sep 2002
    Article Copyright 2002 by Shaun Wilde
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid