What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] underline spell checker

[Request] underline spell checker
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [Request] underline spell checker
quote:
Originally posted by effection
ive thought about this but i dont know ho i would write a checker system for all the many different typos :(
You can use the one in office.  There are examples in the Windows Script Documentation 5.6.  The code extract you are after exactly is...
code:
var Word, Doc, Uncorrected, Corrected;
var wdDialogToolsSpellingAndGrammar = 828;
var wdDoNotSaveChanges = 0;
Uncorrected = "Helllo world!";
Word = new ActiveXObject("Word.Application");
Doc = Word.Documents.Add();
Word.Selection.Text = Uncorrected;
Word.Dialogs(wdDialogToolsSpellingAndGrammar).Show();
if (Word.Selection.Text.length != 1)
   Corrected = Word.Selection.Text;
else
   Corrected = Uncorrected;
Doc.Close(wdDoNotSaveChanges);
Word.Quit();

The hard part is the red squiggle underline to indicate the word is incorrectly spelt.
[Image: markee.png]
03-24-2007 01:24 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] underline spell checker - by namooth on 03-24-2007 at 09:44 AM
RE: [Request] underline spell checker - by effection on 03-24-2007 at 01:17 PM
RE: [Request] underline spell checker - by markee on 03-24-2007 at 01:24 PM
RE: [Request] underline spell checker - by effection on 03-24-2007 at 05:41 PM
RE: [Request] underline spell checker - by scott2010_h on 03-24-2007 at 07:17 PM
RE: [Request] underline spell checker - by effection on 03-24-2007 at 11:08 PM
RE: [Request] underline spell checker - by namooth on 03-25-2007 at 04:26 AM
RE: [Request] underline spell checker - by effection on 03-27-2007 at 05:29 PM
RE: [Request] underline spell checker - by namooth on 03-27-2007 at 05:58 PM
RE: [Request] underline spell checker - by Ashylay on 03-27-2007 at 07:16 PM
RE: [Request] underline spell checker - by effection on 03-27-2007 at 09:51 PM
RE: [Request] underline spell checker - by MicroWay on 03-27-2007 at 10:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On