Was just mining and I saw uptext return this: "Mine ro$ks". Which of course makes no sense, so what if we edit the rs_getuptext to have the ability to only allow certain characters to be matched, we might get better results?
Second of all, someone should create a IsUptext function that uses "Approximate string matching"
Link1
Link2
Of course, you would need to get rid of the "/ x more options" part etc.. But which such an algorithm (opposed to a simple pos-search) it would still return "Mine ro$ks" as a hit, when checking against "Mine rocks", since the strings just differ in 1 character.
EDIT: And another note; Uptext is really just checking if certain text is at the top-left corner.. There must be a smarter way to do this then by using OCR. (After all it's the same as object finding, only now with your object being a string of text).
EDIT2: Hihi, wiki says: "This has a wide range of applications, for instance, spell checkers, correction systems for optical character recognition..."








Reply With Quote








