Sign in to follow this  
Followers 0
big_daddy

Custom Spell Checker

27 posts in this topic

#1 ·  Posted (edited)

As I was trying to make a spell check function for the Word Automation Library, I ended up making this instead. :whistle:

Posted Image

Requirements:

AutoIt Beta

Word.au3

Updated 3/18/2008

CustomSpellChecker.au3Previous versions had 370+ downloads

To spell check in specific languages you will need to include a "LangID.ini" file in the script directory. Below is an example of that file with a few language constants. The full list of constants can be found here under WdLanguageID. Note: you must have the language already installed on your pc to be able to spell check with it. :)

[WdLanguageID]
English=1033
French=1036
German=1031
Italian=1040
Spanish=1034

Enjoy,

Bob

Edited by big_daddy

Share this post


Link to post
Share on other sites



looks real nice.. too bad i dont have word :whistle:

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

big_daddy,

I like it. :whistle: Thanks for sharing.

Do you plan on making any improvements?

I think it would be cool when you click on a misspelled word to then have it highlighted in the sentence where it occurs.

taurus905


"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

It replaces all the misspelled words.

If you have " mispelled bla bla bla mispelled" and you replace the word 'mispelled', it will replace any "mispelled" to "misspelled" :whistle:

Edited by rbhkamal

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

@ptrex - Fixed! I also add the feature to spell check in a specific language. That turned out to be a beast!

@taurus905 - I wasn't planning on making updates, but sense you asked I added the highlighting.

@rbhkamal - Fixed!

Share this post


Link to post
Share on other sites

@taurus905 - I wasn't planning on making updates, but sense you asked I added the highlighting.

big_daddy,

Thanks for the update with the highlighting feature. It looks great. :whistle:

taurus905


"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Share this post


Link to post
Share on other sites

Sounds, looks and works good!

i542


I can do signature me.

Share this post


Link to post
Share on other sites

Sounds, looks and works good!

i542

Big Daddy !

It works for me !

The GUI you displayed at the begining dont diplay as shown on my computer ?

Share this post


Link to post
Share on other sites

There is a problem when spell cheking multiple lines.

It looks like you should use this:

GUICtrlSetData($Edit,  StringReplace( $oRange.Text , @CR , @CRLF))

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

@lukeneo - Does it look close? If so then it is probably just a difference in our windows theme.

@rbhkamal - This is by design. I was forced to do this because of the way MS Word counts characters. It counts a @CR as a character whereas the edit control does not, because of this the highlighting was getting thrown off. Even though it looks funny in the edit control it will copy and paste fine in most apps.

Share this post


Link to post
Share on other sites

@rbhkamal - This is by design. I was forced to do this because of the way MS Word counts characters. It counts a @CR as a character whereas the edit control does not, because of this the highlighting was getting thrown off. Even though it looks funny in the edit control it will copy and paste fine in most apps.

i c..

Nice job

RK


"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

Dude!! Your script doesn't work anymore??

It's broken in every possible way!!

Note:

Someone sent me an Email thinking I wrote this script.

Regards,

RK


"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

***FIXED***

Thanks for letting me know!!!

Line 9 needed to be changed to this...

Global $oWordApp = _WordCreate ("", 0, 0, 0)

Share this post


Link to post
Share on other sites

Thank you, now it runs. Is it also somehow possible to access the thesaurus of word?

Share this post


Link to post
Share on other sites

@magician13134 - That isn't what this script is meant for. However you could retrieve the text using the .innerText Method for IE. If you have any additional questions on this please as them in the support forum.

Thanks,

Bob

Share this post


Link to post
Share on other sites

New version available! Fixes another small bug.

Enjoy,

Bob

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0