Question #155646 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/155646
Status: Open => Answered
RaiMan proposed the following answer:
this is the easiest way:
start = time.time()
max = 100.0 # max time in seconds
while exists(image, 0): # one search per exists()
if time.time() - start > max: break
duration = time.time() - start
if duration > max:
popup("did not disappear")
else:
popup("seconds to disappear: "+str(duration))
More complex solutions are possible with observe().
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp