← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #195347]: wait for image A or wait for image B

 

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

    Status: Solved => Open

Randy is still having a problem:
Thanks that  works now but i dont seem to understand this part can u
explain?

    isImgA_or_ImgB = False
    while not isImgA_or_ImgB:
        wait(1)

I'm still experimenting on the use of Observe. After trying the script
below nothing happened, did i miss something?

def handler(event):
    click(A )
    
def handler2(event):
    click(B )
    
 Thanks
onAppear(C , handler)
onAppear(D, handler2)
observe()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.