PPRuNe Forums - View Single Post - A Spell Check for Browsers
View Single Post
Old 22nd Aug 2002, 23:54
  #4 (permalink)  
BlueEagle
 
Join Date: May 2002
Location: Australia
Posts: 2,242
Likes: 0
Received 0 Likes on 0 Posts
Dick - The link still works for me.

Suggest you type it in to your browser and try again.

Have had problems myself with links that insist on opening up something else, had to ignore link and go manual!

Then again, I'll try a copy and paste job:

TechPC Magazine
Home > Solutions > User To User > User-to-User: Spell-Check Web Text
User-to-User: Spell-Check Web Text

By Neil J. Rubenking

Spell-checkers are built into most e-mail programs, but if you post messages in forums or using Web-based e-mail, spell-checking may not be available. I used to bring up Microsoft Word, paste the text into it, spell-check, and paste the corrected text back into the browser. Then I realized there was an easier way. Save the following as ctemp\spellcheck.js:

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
}
Drag the file from Windows Explorer to the Links bar in IE to create a shortcut to the script. Right-click the shortcut, choose Rename, and name it Spell Check. Now when you're entering text in any Web page, you can highlight the text and click the Spell Check button. Word comes up and does a normal, interactive spell check, closing when finished.

Dan Rollins

I corrected one minor slip. The original script simply hid the Word window when done rather than calling Quit(). This resulted in an accumulation of invisible instances of Word. With that minor change, which is implemented in the code shown here, this script is quite useful!


Privacy Policy | Terms of Use
Copyright © 2002 Ziff Davis Media Inc. All Rights Reserved.
PC Magazine is a registered trademark of Ziff Davis Publishing Holdings Inc.

Last edited by BlueEagle; 23rd Aug 2002 at 00:02.
BlueEagle is offline