sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38446
Re: [Question #294807]: Trouble figuring out onAppear
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.