← Back to team overview

sikuli-driver team mailing list archive

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

Description changed to:
I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer,
also, if image appears in 1sec, then I would like to wait for 1sec more
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time the image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total.

I really would like to achieve this, cuz this wait is inside a function that I have to repeat several times.
Is this kinda easy to achieve, or it would take to much resource usage, so it may not be worth doing.

Thanks Advanced.

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