Blog

Search | Archive | Categories
Via America's Debate, a tip on how to run a spellchecker from your browser.

Requirements: Internet Explorer and Microsoft Word

1. Copy the following code into notepad:

oShell= new
ActiveXObject("WScript.Shell");
oShell.SendKeys( "^c" ); // copy
oWord= new ActiveXObject("Word.Application");
oWord.Visible= true;
oWord.Documents.Add();
oWord.Selection.Paste();
oWord.ActiveDocument.CheckSpelling();
oWord.Selection.WholeStory();
oWord.Selection.Copy();
oWord.ActiveDocument.Close(0);
oWord.Quit();
var nRet= oShell.Popup( "Apply changes?nClick OK to replace all selected text.", 0, "Spell Check Complete", 33 );
if (nRet ==1 ) {
oShell.SendKeys ( "^v" ); // paste
}

2. Save the file as "spellcheck.js".

3.Open Internet Explorer.

4. Drag "spellcheck.js" from Windows Explorer on to the "Links" section of the Internet Explorer toolbar.

5. Rename the new shortcut "Spell Check" (might have to leave the .js extension).

Now, whenever you're posting at the forum, or writing web mail, you simply select the entire text of the email (Control-A), and hit "Spell Check".

It very nicely opens up a Word Document, runs spell check, and asks you if you'd like to apply the changes. It's great!





Posted: 2002-09-18 10:29:44


<< Java Terminology and AcronymsOddpost >>

RSS/XML