sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32215
Re: [Question #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266392
Status: Open => Answered
RaiMan proposed the following answer:
currently the only solution:
min = 2.0
start = time.time()
reg.wait(Img, 9)
rest = min - time.time() - start
if rest > 0: wait(rest)
but might be a good idea to have something like that:
minWait(2.0)
reg.wait(img, 9)
and minWait() only effects the next search.
another option would be, to have a wait() variant like that:
wait(image, maxWait, minWait)
I put it on the list for version 2
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.