← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673949]: "If" and "Find" Pictures

 

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

Martin Ehlert posted a new comment:
ich hab Probleme das umzusetzen da ich in Phyton und Sikulix noch nicht
so fit bin.. wenn ich dich richtig verstanden habe habe ich das so
umgesetzt jetzt:

pic1 = "pic1.png"
pic2 = "pic2.png"
pic3 = "pic3.png"
pic4 = "pic4.png"

pictures = [pic1, pic2, pic3, pic4]

matches = findAnyList(pictures)
if len(matches) > 0:
for match in matches: click(match)
matches = findAnyList(pictures)
while (len(matches) > 0):
for match in matches: click(match)
matches = findAnyList(pictures)

richtig ?

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