sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17240
Re: [Question #225600]: match a list with another no matter of the order
Question #225600 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/225600
Status: Answered => Open
Greg83140 is still having a problem:
Thank you for your answer.
Actually my problem is a little more complicated but i realize I didn't expose my problem clearly :) :
I have set a lot of img (30) :
img1 = ()
...
img30 = ()
I have a list of 2 pictures : List1 = (ImgA, ImgB) (I don't know theses images because it's the result of my algorithm)
All that I know is that these 2 images are belonging to my list of 30 images
I would like to make an action if this list contains for exemple
(img1,img2) or (img2,img5) or (img10,img15) or (img29,img15)...
so for explain it simply in code, it will be great if I could write a
code like that :
if List1 == (img1,img2) or (img2,img5) or (img10,img15) or (img29,img15) :
print("Action1)
if List1 == (...,...) or (...,...) or or (...,...) or (...,...) or (...,...) or (...,...) :
print("Action2")
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.