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

    Status: Open => Answered

RaiMan proposed the following answer:
using observe here is simply overkill ;-)

success = False
if r1.exists("1.png", 10): # wait 10 seconds max for 1.png
    r1.doubleClick() # double click if found: last match in r1
    if r2.exists(Pattern("2.png").similar(0.95), 10):  # then wait 10 seconds 
max for 2.png
       success = True # if found: it is success
if success:
    popup("success") # or do something else
else:
   exit()

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