← Back to team overview

sikuli-driver team mailing list archive

[Question #169982]: while not exists

 

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

RegionA = Region(1,2,3,4)
RegionB = Region(4,5,6,7)

while True:
    while not RegionA.exists(Blue.png,FOREVER):
         RegionB.wait(Yellow.png,FOREVER)
         RegionB.click(getLastMatch())

Is this correct? because even when RegionA exists the Blue.png Yellow.png get clicked when Yellow.png appears. I want the Yellow.png to be clicked only when when Blue.png is not seen. Thanks






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