sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41690
Re: [Question #478080]: How to deal with getting text from dynamic bubble region
Question #478080 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/478080
RaiMan posted a new comment:
while not exists(Pattern("1487911529987.png").targetOffset(80,-4)):
the only thing to optimise:
while not expectedRegion.exists(Pattern("1487911529987.png").targetOffset(80,-4), 0):
- expectedRegion: if you somehow define the region, where you expect your pattern to appear, it would be faster
- exists( ... , 0): only one search (otherwise it would wait 3 seconds if not there)
the other things to get more flexible would only be to put it in a
def(), if you need this feature more often with different setups, and
define the now fixed values as variables/parameters.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.