SpellChecker for Text Editing

  • Thread starter Thread starter PaulFXH
  • Start date Start date
Michael escreveu:
There's a free tiny script, available from this link, that'll send any
text that you can copy to the clipboard to the MS Word spellchecker
(which, of course, is not freeware):

http://www.pcnineoneone.com/tweaks/scripts8.html

I use this script with Notepad2 as an "Amish computing" strategy --
writing without distractions.

Hi Michael
I've been using the spellchecker you brought to the thread and I really
do like it.
So much so that I've written a small script to make it easier to use.
I use a WinKey Hotkey combo to launch the script once I have finished
writing a file to a text editor. The script then highlights the text,
copies it to the clipboard and launches the MSWord spellchecker without
the user having to touch the keyboard or mouse.
The script as written only applies to NotePad right now but this can
easily be changed by changing the title string of the text editor app
noted in the AppActivate command line (fifth line as presented here).
Here's the script (written in vbscript):

Dim objShell
Set objShell = WScript.CreateObject("Wscript.shell")
Wscript.Sleep 1000
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate "notepad"
WScript.Sleep 100
wshshell.SendKeys "^{home}"
wshshell.SendKeys "^+{end}"
wshshell.SendKeys "^c"
objShell.Run "sp"

Note that the script assumes that you have not altered the suggested
"sp" name for the Run command. If you have, change the last line of the
script.

Paul
 
Back
Top