← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #688352]: Mouse stuck in loop

 

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

RaiMan proposed the following answer:
- how to use findAny()

... based on your first exists example.

matches = reg.findAny("pic1", "pic2", "pic3", ... more pictures)
if (len(matches) == 0):
    print "none of them found"
    # in a loop: use continue to repeat
found = matches[0].getIndex() 
print "found: pic%d" % found +1

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.