Question #167084 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/167084
RaiMan proposed the following answer:
@Josh
no need to wait weeks until asking such questions ;-)
TIP: you would get more possible responses, if you post your own question, and
not dock to an existing one.
BTW: the concepts for your solution is already sketched in comment #1
and still valid:
the steps, to get the most effective solution:
- evaluate the smallest possible region, where you expect the 2 images to
appear (one or two regions, does not matter, minimum size is the goal)
- make a wait loop
- use exists(img, 0) to check appearence
reg1 = #evaluate region for image1
reg2 = #evaluate region for image2
waitUntil = time.time() + 120
while time.time() < waitUntil:
if reg1.exists(image1, 0):
# do what is needed
break
if reg2.exists(image2, 0):
# do what is needed
break
--
You received this question notification because your team Sikuli Drivers
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