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.