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

Roman Podolyan proposed the following answer:
1)  if not (exists(a, 0) and exists(ab, 0)):
        return


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

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


______

If "a" does not exist, function exits.

If while exits when "a" is still present, if condition triggers double
click and function exit.

So if "a" always exists, code after 2 may never get executed.

-- 
You received this question notification because your team Sikuli Drivers
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