Question #238824 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/238824

    Status: Open => Answered

RaiMan proposed the following answer:
# no need to step down to this level
r1 = selectRegion()
text1 = r1.text()

the rest is just Python coding

validcount=0
invalidcount=0

for letter in text1:
    if (letter.isdigit or letter.isupper or letter == "_"):
        validcount += 1
    else:
        invalidcount += 1

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to