Question #294807 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/294807

Karl proposed the following answer:
breakLoop = False

def myHandler(event):
    global breakLoop 
    breakLoop = True
    print "myImage just appeared"

onAppear("myImage.png", myHandler)
observe(60, background=True)

x = 0
while x < 10000 and not breakLoop:
    print x
    x = x+1

-- 
You received this question notification because your team Sikuli Drivers
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

Reply via email to