Posted: 11/1/2002 11:04:45 AM EDT
|
Want to add a Spellchecker to your browser? This handy little piece of code will spell check your typing in any text box on the internet. I used to have to copy text to MS Word[b]**[/b] to spell check stuff on the Net, but not anymore! To use it, create a text document containing the following text: [b] 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 } [/b] Save this file as "Spellcheck.js" and place this .js script file in your Windows\Temp folder. Create a shortcut to this script file on your IE explorer bar where links go. Rename the shortcut to "Spellchecker". Now you are ready to rock. [red]TO USE: Highlight the text in your post, and hit the shortcut. [/red] The script will automatically paste the text into MS Word, spell check it (with your help), and copy it back to your post. [b]**You must have MS Word installed for this script to work![/b] -credits- Code by: Dan Rollins Printed in: PC Magazine - 9/3/2002 |
|
I have never ever gotten that thing to work! [;)] It just sits there, and sits there, and sits there... ...and sits there, until I hit the "STOP" button and say "Heck with it". Besides, the utility works on [b]ANY[/b] site on the internet, not just my favorite one! [:)] BTW - I tried it again, just now, and I waited no less than 30 seconds, and gave up. |