← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #194144]: How to make exists(img, 0.01) return immediately even if it fails and not take at least 0.3 seconds

 

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

RaiMan proposed the following answer:
Oh yeh, it is always good to find out the right questions and ask them
loudly ;-)

***** I found the resin and the solution:

It is the

Settings.WaitScanRate
(http://sikuli.org/docx/globals.html#Settings.WaitScanRate)

that in the standard is 3 (means max 3 searches per second). 
And it looks like that this is the time that is consumed for a FindFailed with one search (0.3 seconds ;-)

You might set it to 100 and Sikuli will return after latest 0.01 seconds
, if the image is not found in small regions (slightly larger than the
pattern) or even faster.

But be careful with this setting as a standard: this might overload your
system !!!

But using it together with your time critical exists(image, 0) just does
what you want.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.