sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #48524
Re: [Question #673949]: "If" and "Find" Pictures
Question #673949 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673949
RaiMan proposed the following answer:
# version 1.1.4
# capture the pictures:
# write picN = and use capture button
pic1 = "pic1.png"
pic2 = "pic2.png"
pic3 = "pic3.png"
pic4 = "pic4.png"
pictures = [pic1, pic2, pic3, pic4]
matches = findAnyList(pictures)
if len(matches) > 0:
# when Sikulix found one of them i want siku to click them
for match in matches: click(match)
matches = findAnyList(pictures)
# and then click till all Pictures away..
while (len(matches) > 0):
for match in matches: click(match)
matches = findAnyList(pictures)
... if I understood right ;-)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.