sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33901
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: Open => Answered
RaiMan proposed the following answer:
ok, then the easiest way is to search in both regions one after the
other.
na = existsAny(regionA, imagelist)
nb = existsAny(regionB, imagelist)
now you have na and nb to make your decisions.
If you want to get faster:
- make the regions as small as possible
- delegate the search for each regions in threads
--- this would become a very large if-elif-else...
If there are many decisions to make, then the construct gets large by design ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.