sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15724
Re: [Question #220188]: Sikuli - how to read numbers
Question #220188 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/220188
Status: Open => Answered
RaiMan proposed the following answer:
First you have to try, wether it is possible at all, to "read" the
numbers from the count area:
r = selectRegion("select the count area as small as possible")
print r.text()
if you get sufficient results, the principal workflow is something like
that:
countArea = .... # somehow make it the region containing the counter
maxCount = ... # the limit
count = 0
while count <= maxCount:
count = int(countArea.text())
wait(1) # pause a adaquate number of seconds
# now count is >maxCount
.... # your actions
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.