← Back to team overview

sikuli-driver team mailing list archive

[Question #667831]: Check for 2 images in 1 region

 

New question #667831 on Sikuli:
https://answers.launchpad.net/sikuli/+question/667831

Hi,

I am new to sikuli but I am trying to get a script to wait for either image A or image B to appear in the same region.

type(Key.F8)

while not REGION.exists(img1) or REGION.exists(img2):
      wait(0.5)
type(Key.F8)

I am not sure whether I need to include to while not statements or if I am way off the mark but any help would be greatly appreciated!

Thanks

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.