← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #435954]: Finding one of several images in predefined region

 

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

Milteven proposed the following answer:
If you set a region for search SIkuli will be much more efficient.


if REGION.inside().exists(img1,0): #execute commands
elif exists REGION.inside().exists(img2,0): #execute commands
...
...
elif exists REGION.inside().exists(imgN,0): #execute commands


You can do it for as many images you want.

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