← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #678458]: I can't implement the rest of the function.

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the only reason I can see:

    while time.time() < (start + 3) and exists(a, 0):
        pass

    if exists(a, 0):
        doubleClick(b)
        return

# here we get only if img1 (a) does not exist
#... but maybe it takes longer than some 10 millisecs for img5 (ef) to get visible
#... so use some waittime > 0

    if exists(ef, 0):
        doubleClick(efg)

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