← 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

Description changed to:
I cant seem to get this to work
it seems to ignore "or RegB.inside().wait(imgB.png,FOREVER)" therefore when imageB appears. When imageB.png appears, imgA.png doesnt seemed to get clicked. Seems like the script only waits for imgA.
Is there an error in my script?

while True:
   RegA.inside().wait(imgA.png,FOREVER) or RegB.inside().wait(imgB.png,FOREVER)
   click(imgA.png)

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