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

    Status: Open => Answered

masuo proposed the following answer:
If you want to determine whether image A or image B exists at that moment
imagelist = [imageA, imageB]
mm = findAny(imagelist)
for m in mm:
    print m.getIndex()

https://sikulix-2014.readthedocs.io/en/latest/region.html#findmorethanoneimage

If you want to check in sequence at that moment
if exists(imageA, 0):
    print "imageA is found"
elif exists(imageB, 0):
    print "imageB is found"


If you want to check continuously for 3600 seconds
t = 3600
while t > 0:
if exists(imageA, 0):
    print "imageA is found"
elif exists(imageB, 0):
    print "imageB is found"
wait(10)
t = t - 10

-- 
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     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to