Does wait(screenshot), 300) only check once? or 300 times?

Asked by arminius on 2017-07-09

As in does it check the screen once then wait 300 seconds to move on?
or does it keep checking? hoping for a change?
I'm hoping for the latter.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
arminius
Solved:
2017-07-09
Last query:
2017-07-09
Last reply:
2017-07-09
Manfred Hampl (m-hampl) said : #1

Read the manual
http://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=timeout#Region.wait

... If PS is specified, it ==> keeps searching the given pattern in the region <== until the image appears ... or the specified amount of time has elapsed. ...

Manfred Hampl (m-hampl) said : #2

(Remark: I do not know about the frequency of re-searching, I assume RaiMan can answer that.)

arminius (arminius75) said : #3

Well I'm glad that my doubling of the wait time every time it fails isn't a waste of time.
Thanks.