Author Topic: AH SpellChecker  (Read 305 times)

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18206
AH SpellChecker
« on: August 08, 2002, 12:48:17 PM »
found this in this months PCMag:

here's the script:


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.CheckSpe lling();
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
}


here's how to do it:
http://www.pcmag.com/article2/0,4149,437528,00.asp
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Offline Sandman

  • Plutonium Member
  • *******
  • Posts: 17620
AH SpellChecker
« Reply #1 on: August 08, 2002, 01:46:44 PM »
Eye have a spelling checker
It came with my Pea Sea
It plane lee marks four my revue
Miss steaks aye can knot sea.

Eye ran this poem threw it,
Your sure reel glad two no.
Its vary polished in it's weigh
My checker tolled me sew.

A checker is a bless sing,
It freeze yew lodes of thyme.
it helps me right awl stiles two read,
And aides me when aye rime.

Each frays come posed up on my screen
Eye trussed too bee a joule
The checker pour o'er every word
To cheque sum spelling rule.

Be for a veiling checkers
Hour spelling mite decline,
And it were lacks or have a laps,
We wood be maid to wine.

Butt now bee cause my spelling
Is checked with such grate flare,
Their are know faults with in my cite,
Of non eye am a wear.

Now spelling does know phase me.
it does know bring a tier.
My pay purrs awl due glad den
With wrapped words fare as hear.

To rite with care is quite a feet
Of witch won should be proud.
And wee mussed dew the best wee can
Sew flaws are knot aloud.

Sow ewe can sea why aye dew prays
Such soft ware four pea seas,
And why I brake in two averse
By righting want too pleas.
sand

Offline Ripsnort

  • Radioactive Member
  • *******
  • Posts: 27251
AH SpellChecker
« Reply #2 on: August 09, 2002, 07:32:31 AM »
.

Offline Badboy

  • Silver Member
  • ****
  • Posts: 1217
Re: AH SpellChecker
« Reply #3 on: August 09, 2002, 07:56:32 AM »
Quote
Originally posted by Eagler
found this in this months PCMag:

here's the script:



Doesn't work for me. When I click on it in the IE links drop down menu, I just get another popup that asks me what program to open it with. I'm guessing that it needs something I don't have installed?

Badboy
The Damned (est. 1988)
  • AH Training Corps - Retired
  • Air Warrior Trainer - Retired

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18206
Re: Re: AH SpellChecker
« Reply #4 on: August 09, 2002, 08:26:05 AM »
Quote
Originally posted by Badboy


Doesn't work for me. When I click on it in the IE links drop down menu, I just get another popup that asks me what program to open it with. I'm guessing that it needs something I don't have installed?

Badboy


It checks spelling with the MSWord spell check, works good hear :)
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Offline Badboy

  • Silver Member
  • ****
  • Posts: 1217
Re: Re: Re: AH SpellChecker
« Reply #5 on: August 09, 2002, 09:06:13 AM »
Quote
Originally posted by Eagler


It checks spelling with the MSWord spell check, works good hear :)


Really, you have it working?

I have MSWord installed and I've followed the instructions to the letter, but it doesn't work. When I click on the link I just get the "Open With" dialogue box.

You think it depends on the OS?

Anyways, I've probably wasted too much time on it already, shame, it would have been neat.

Badboy
The Damned (est. 1988)
  • AH Training Corps - Retired
  • Air Warrior Trainer - Retired

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18206
AH SpellChecker
« Reply #6 on: August 09, 2002, 09:42:40 AM »
Win2K here at work with Office 2000 using it with IE 6.0

works like a champ. Highlight text to check, then click shortcut in links bar to file. It opens word, copies highlighted text shows corrections if any then pastes the corrected text back  and closes word.
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Offline Gunthr

  • Gold Member
  • *****
  • Posts: 3043
      • http://www.dot.squat
AH SpellChecker
« Reply #7 on: August 09, 2002, 10:24:28 AM »
I don't know what the problem is, I couldn't get it to werk.
"When I speak I put on a mask. When I act, I am forced to take it off."  - Helvetius 18th Century

Offline Badboy

  • Silver Member
  • ****
  • Posts: 1217
AH SpellChecker
« Reply #8 on: August 09, 2002, 10:28:39 AM »
Quote
Originally posted by Eagler
Win2K here at work with Office 2000 using it with IE 6.0

works like a champ. Highlight text to check, then click shortcut in links bar to file. It opens word, copies highlighted text shows corrections if any then pastes the corrected text back  and closes word.


I'm using Office 2000 and IE 6.0 same as you, but I'm still using Win98SE, perhaps that's it. If anyone else gets it to work with win98, please let me know.

I also notice that when I drag the spellcheck.js file into the IE Links menu, it doesn't acquire an IE icon similar to the other links, does that mean anything?

Also, when I copied the script, I pasted it into notepad before saving it as spellcheck.js is that the right thing to do?

Anyway, thanks for the help.

Badboy
The Damned (est. 1988)
  • AH Training Corps - Retired
  • Air Warrior Trainer - Retired

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18206
AH SpellChecker
« Reply #9 on: August 09, 2002, 11:53:11 AM »
when I copy and paste it into notepad, I get a bunch of strange characters. I used Dreamweaver to create the js file.
The icon won't look the same as it is not an html page like the rest of the links under "Links"
I'll try it at home, Win98 there and let you know.
Here is a copy of the file that works for me here at work in a zip:

SpellChecker
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder

Offline Badboy

  • Silver Member
  • ****
  • Posts: 1217
AH SpellChecker
« Reply #10 on: August 09, 2002, 06:44:55 PM »
Quote
Originally posted by Eagler
when I copy and paste it into notepad, I get a bunch of strange characters. I used Dreamweaver to create the js file.
The icon won't look the same as it is not an html page like the rest of the links under "Links"
I'll try it at home, Win98 there and let you know.
Here is a copy of the file that works for me here at work in a zip:

SpellChecker


Thanks, your file didn't make any difference, I'll wait and see how you get on with Wing98.

I appreciate the help.

Badboy
The Damned (est. 1988)
  • AH Training Corps - Retired
  • Air Warrior Trainer - Retired

Offline Eagler

  • Plutonium Member
  • *******
  • Posts: 18206
AH SpellChecker
« Reply #11 on: August 10, 2002, 11:44:46 PM »
turns out my win98 side of the dual boot on my home machine doesn't have Word installed. I boot to it to play games only. The WinXP boot does have word and it worked fine once I set .js files to open with a program called "WScript.exe". I had it set to open to edit with Dreamweaver but switched it in Explorer (Tools/Folders/File Types/Opens With).
You'll find it at:
C:\Windows\WScript.exe in Win98, it was under Windows\System32 in WinXP
"Masters of the Air" Scenario - JG27


Intel Core i7-13700KF | GIGABYTE Z790 AORUS Elite AX | 64GB G.Skill DDR5 | 16GB GIGABYTE RTX 4070 Ti Super | 850 watt ps | pimax Crystal Light | Warthog stick | TM1600 throttle | VKB Mk.V Rudder