sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33900
Re: [Question #240213]: How to know a specific image found on a if exists with an array
Question #240213 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240213
Status: Needs information => Open
Luiz gave more information on the question:
alright
I have this list with 20 diferent images in it (image01-image20). The images will appear in two diferent regions (regionA-regionB)
If they dont appear, the program will click elsewhere and the loop will restart.
If they appear, I want to know which image appears in which region so if i print the result it would come as something like:
image02, image18. <-thats my problem, after getting the first image, it wont give the second image (or value, etc) it just keep going with the loop. so i just want to know which image appears in which region... ( Im feeling a little dumb right now, I imagine this can be achieved in a simple way that I just don't get)
I could think in two possibilities but the are far from elegant:
1 - search the two regions as one region.
The problem here is that the area now is much bigger and the sequence of images that were only 20 becomes (20*20) so I would need 400 images (they do repeat in both regions)to check in a very large region.
2 - search for one image in one region than search for the second image
based on the return of the first image, like if the image on region 1 is
image1-10 search for images 5-15 on region 2. Since i have very
different tasks for each result, this would become a very large if-elif-
else...
basically i just want to know which image appears in which region,
depending on the result it would do this or that.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.