Page 1 of 1

If you can use Microsoft Word dictionary to check the text?

Posted: Sat Sep 17, 2016 5:12 pm
by sexy96
W Scripts-Eng znalazłem takie coś:
SpellCheck.js-spell check using Microsoft Word.
Czy to znaczy, że można wykorzystać słownik Word'a zamiast SpellCheck?

Posted: Mon Sep 19, 2016 7:13 pm
by Skif_off
sexy96
You can try: select text and call SpellCheck.js.

Posted: Mon Sep 19, 2016 7:19 pm
by sexy96
It does not work in AkelPad 64

Posted: Mon Sep 19, 2016 9:37 pm
by Skif_off
sexy96
x32 too and without error message?

Posted: Tue Sep 20, 2016 5:40 am
by sexy96
In the x32 works, but not as well as in Word

I have a Windows 64 bit and I should use x64

Posted: Tue Sep 20, 2016 10:59 am
by Skif_off
sexy96
I tried used AkelPad x64 and Word x32: works fine.

SpellCheck.js uses COM-object "Word.application", if creat object is not possible then script show error message "You must first install Microsoft Word 97 or higher". Have you seen him?

Try this: find cmd.exe, run him as administrator and find MS Office folder ("Office12" for Word 2007, "Office14" for 2010), and now:

Code: Select all

cd C:\Program Files (x86)\Microsoft Office\OfficeNN
WINWORD.EXE -regserver
Reboot OS and try call SpellCheck.js again.

word.application+x64

Posted: Tue Sep 20, 2016 11:51 am
by sexy96
It was enough just to enter:
"Word Corrector" Call ("Scripts :: Main", 1 "SpellCheck.js") Icon ()
And it works.

Thank you very much.

PS:
When I run the Spell Check.js
I have info: "No text selected".

Can you run it without a selection of text
so how does Word?

Posted: Tue Sep 20, 2016 2:02 pm
by Skif_off
sexy96 wrote:PS:
When I run the Spell Check.js
I have info: "No text selected".

Can you run it without a selection of text
so how does Word?
You can make copy SpellCheck.js to SpellCheck2.js, replace string

Code: Select all

var pSelText=AkelPad.GetSelText();
on

Code: Select all

var pSelText=AkelPad.GetTextRange(0, -1);
and use SpellCheck2.js, but I don't know what will happen if the text will be very large. (I think text selection is more conveniently.)

Posted: Tue Sep 20, 2016 2:14 pm
by sexy96
It works great, thank you very much.

PS.
"Spell" +Call("SpellCheck::Background") Icon("%a\AkelFiles\Plugs\SpellCheck.dll", 0)

It does not work in x64

You can not open
"D:\WinCMD\AkelPad64\AkelFiles\Plugs\SpellCheck.dll"

SpellCheck.js do not move the text to the top
and I do not see the check word in the text.

Posted: Tue Sep 20, 2016 3:21 pm
by FeyFre
sexy96
PS.
"Spell" +Call("SpellCheck::Background") Icon("%a\AkelFiles\Plugs\SpellCheck.dll", 0)

It does not work in x64

You can not open
"D:\WinCMD\AkelPad64\AkelFiles\Plugs\SpellCheck.dll"
It is by design. Unfortunately core spell checking component not supported in Windows anymore(let alone Windows x64), and I have no resources even to try test it. For 32 bit windows used pretty old version(works good nevertheless)

Posted: Tue Sep 20, 2016 4:03 pm
by sexy96
OK. Thanks.

Posted: Thu Oct 26, 2017 7:51 pm
by sexy96
How to make the correction window not hide under the text,
Always before the text (FormOnTop)?

Przy sprawdzaniu tekstu kursor atomatycznie ustawia się na końcu tekstu
i uruchamia się okienko, w którym dokonuję korekcji.

Gdy na chwilę opuszczę AkelPad z otwartym tym okienkiem (np. w tym czasie uruchomię Chrome)
to wracając do edytora okienko to jest przykryte tekstem.
Próba przywrócenia tego na pierwszy plan powoduje zmianą położenia kursora
i dalsze sprawdzanie nie ma sensu, ponieważ po zakończeniu,
cała korekta zostanie zapisana w przypadkowym miejscu.