Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spell-checking the UT
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00801368
Message ID:
00803557
Views:
23
You're welcome; make sure to add Steve's line, though -- it makes it even easier.


>Thanks for tip!
>
>
>>I stumbled on a handy little script that runs Word's spell-checker against text entered in the browser.
>>
>>Save the code below with a .js extension, and add a shortcut to it to your browser's link bar.
>>
>>Then, after composing your message, just select the text and click the button.
>>
>>Pretty slick!
>>
>>
>>oShell = new ActiveXObject("WScript.Shell");
>>oWord = new ActiveXObject("Word.Application");
>>
>>oShell.SendKeys("^c");
>>
>>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?\n\nClick OK to replace all selected text.", 0, "Spell Check Complete", 33);
>>
>>if (nRet == 1) {
>>  oShell.SendKeys("^v")
>>}
>>

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Previous
Reply
Map
View

Click here to load this message in the networking platform