sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17195
Re: [Question #225347]: Set a region and find an image into it
Question #225347 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/225347
Status: Open => Answered
RaiMan proposed the following answer:
region = Region(x, y, w, h) # (x,y) top left point
# you could use the SelectRegion button
images = ( "shot1.png",
"shot2.png",
.....
"shot22.png")
# first one wins
for image in images:
found = image
if region.exists(image, 0): break
found = None
if found:
print "found:", found
else:
print "None found"
Come back If you want to know, all images found.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.