sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45230
Re: [Question #662211]: Why not work in an "or" way?
Question #662211 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/662211
Status: Open => Answered
RaiMan proposed the following answer:
while ( Region(611,14,45,42).exists("1514209213957.png")==None) or
Region(1061,81,60,66).exists("1514209452991.png")==None):
... not sure wether this is a typo: gives syntax error due to mismatched
)
Guessing your intention, this should work:
while(not Region(611,14,45,42).exists("1514209213957.png") or not Region(1061,81,60,66).exists("1514209452991.png")):
print 1
even better and faster:
while True:
first = Region(611,14,45,42).exists("1514209213957.png", 0)
second = Region(1061,81,60,66).exists("1514209452991.png", 0)
if (not first or not second):
print "first:", first
print "second:", second
wait(1)
else:
break
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.