← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #660409]: Loop Fails

 

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

    Status: Answered => Open

Andrés Portocarrero Bonifaz is still having a problem:
Thanks a lot.

El 6 nov. 2017 12:53 PM, "RaiMan" <question660409@xxxxxxxxxxxxxxxxxxxxx>
escribió:

> Your question #660409 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/660409
>
>     Status: Open => Answered
>
> RaiMan proposed the following answer:
> using such constructs like:
>       wait(2.4)
>       type(Key.LEFT)
>
> can be risky, since it depends on that the targeted GUI gets ready for
> accepting the Key.LEFT latest after 2.4 seconds. If this varies for
> whatever reason, then you have a problem: if it takes 3 seconds, then
> the Key.LEFT is a noop.
>
> So you either have to adjust the wait times somehow, or you have to add
> visual checks to decide, wether the GUI is ready for the next action or
> instead of wait(time) use someRegion.wait(someImage) to wait for the GUI
> to be ready.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/660409/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/660409
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.