I'd like to see this, it would make interacting with mirc QUITE a lot quicker...
Lets hope this post doesn't dissolve into a rant against lazy typers - lemmie bung out a quick script that might be able to do this.
alias f3 {
;Get active window text
var %temp = $editbox($active)
tokenize 32 %temp
;Work out the last word, this will typically be the word to complete
var %word = $eval($ $+ $0,2)
editbox -a $replace($1-,%word,$chr(32) $+ $read(words.txt, w,%word $+ *))
}
on *:text:*:#:{
var %i = 1
while (%i <= $0) {
write words.txt $eval($ $+ %i,2)
inc %i
}
}
This is just a really simple example script - you could do improvements in heaps of areas:
-Cleaning up the lines after N minutes
-Only adding words with a length longer than X amount of characters
-Seperate windows have seperate files
-Multiple calls to the alias store the last word and cycle through the words, remembering offsets and the like. The counters would be cleared if the word doesn't match the last remembered word.
But basically thats teh idea.