← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #251337]: Speed up recognition of absent image

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Region.exists(img, 0)

only checks once for the existence and comes back without a FindFailed if not there.
returns the match if found and null/None if not.

Generally it is the WaitingTime (standard 3 seconds), that bothers you.

For other approaches, this waiting time can be set in various ways:

- globally we have Settings.AutoWaitTimeout = 3.0 (standard), which can be set to a float value in seconds
- this value is registered with a region at time of creation of that region and 
- can be set individually per region using Region.setAutoWaitTimeout()

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