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

RaiMan proposed the following answer:
Nevertheless: the solution in comment #21 is the more general solution:

# now with an outer loop, that needs to be interrupted using "ALT+SHFT+C"
while True:
    while True:
        isA = exists(A, 0)
        isB = exists(B, 0)
        isC = exists(C, 0)
        if isA or isB or isC: break
        wait(1)
    if isA and not isB and not isC:
        # do something if ONLY A was visible
    if isA and isB:
        # do something if A AND B was visible, C does not matter
    # more if's as needed

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