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

    Status: Open => Answered

RaiMan proposed the following answer:
--- possibility 1: image driven waits

while True:
    if exists("V.png") : 
        type("F")
        waitVanish("V.png")

if image comes up, it waits until image vanished again.
Tip: exists, wait and waitVanish have an optional time parameter (see docs), 
that could extend the max waiting time beyond the standard 3 seconds

--- possibility 2: static waits

while True:
    if exists("V.png") : 
        type("F")
        wait(3)

This would wait fix for 3 seconds (other than waitVanish, which reacts
on the image and the max given waiting time)

-- 
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

Reply via email to