realtime string correction
I would like to make a real time Spell checker but am having some issues. i know the "keyboard_check_direct()" command checks key presses outside of the gm window (gm window is inactive) but is there a way to do that with strings/string_replace()?
example: I'm typing a message in a forum/msn/irc/game, i type "helo all" then it replaces "helo" with "hello".
to sum it up: how do i detect strings (not just keypresses) outside of the gm window? aka: when gm is inactive.
Thanks for the help
example: I'm typing a message in a forum/msn/irc/game, i type "helo all" then it replaces "helo" with "hello".
to sum it up: how do i detect strings (not just keypresses) outside of the gm window? aka: when gm is inactive.
Thanks for the help
I tried to interact with the keyboard and mouse while the GM-window was inactive a couple of years ago. To sum it up: In GM 5.3a it didn't work for sure. Maybe there are new DLLs available today though, I don't know.
dang. but it is possible to detect key presses with "KEYBOARD_CHECK_DIRECT" so it may be possible to detect single key presses as a sringed word. but thats getting difficult.
Well, it is not more difficult than actually correcting words. Say for instance that you use the dictionary DLL from GMC, which you can use to check to see if a word exists. If you add every key press to a variable you simply after every key press check if it is a word, or if after your correcting algorithm you have a word, and if it is a word you simply set the variable to zero... then it'll start all over automatically when you start all over with a new word. So, the hard thing is not to detect a combination of letters out of single key presses but the hard thing is to correct words. Did you have an idea of how to accomplish this, or was that one of those things that you wanted to figure out?
"Happiness is not in the mere possession of money; it lies in the joy of achievement, in the thrill of creative effort." - Franklin D. Roosevelt
nenci, your sig is big 
well, i was thinking of not using a DLL, instead use a text file with a pre-defined library and you can add custom entries. like: replace(word, replace with). so the hard part would be detecting the order of letters and see if it's a word.

well, i was thinking of not using a DLL, instead use a text file with a pre-defined library and you can add custom entries. like: replace(word, replace with). so the hard part would be detecting the order of letters and see if it's a word.
much. thanks.
.
Users logged in: