← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673192]: Is it possible to speed up the code?

 

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

masuo proposed the following answer:
Are you want to shorten the time to return the result of exist ()?
If image is not exist on screen, exists() return result after 3 seconds.
If you specify maximum waiting time to zero as exists, exists() return result immediately even if image is not exist on screen.
[example]exists("image01.png",0)

If you want to search for multiple images, it's better to use findAny () rather than using exists () multiple times.
https://sikulix-2014.readthedocs.io/en/latest/region.html?#find-more-than-one-image-in-a-region-at-the-same-time

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