← 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

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.