Question #265633 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265633
Status: Open => Answered
RaiMan proposed the following answer:
Each region has it's own AutoWaitTimout.
just use
someRegion.setAutoWaitTimeout(...)
At Region create time the Region's autoWaitTimeout value is set to
Settings.AutoWaitTimeout
at time of search the sequence is as follows:
- take a wait time if given in the method (wait(), exists(), waitVanish(), ...)
- take the Region's autoWaitTimeout value (which is the global default
Settings.AutoWaitTimeout if not changed)
I always find it clearer to not use autoWaitTimeout with a Region, since
mostly the timeout depends on the searched image and not on the region
and use
wait(image, time) # instead of find with a region autoWaitTimeout
and
click(reg.wait(image, time)) # instead of reg.click(image) with a region
autoWaitTimeout
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp