sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22213
Re: [Question #238824]: text reco
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.