Question #280774 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280774
Status: Solved => Open
Nidere is still having a problem:
I'm sorry for my stupidness, but I still got problem with that, could You
please look again?
The first observation works just like it should, but the script stops
immediately after calling my_method2, i.e. without starting second observation.
How should I develop consequent observations? Can I start a new one inside a
handler for the previous one?
And do the incoming parameteres for the handlers (event, event2) have to be
different?
Thanks a lot for your help!
r1 = (Region(0,0,1088,94))
r2 = (Region(556,294,742,521))
def my_method3():
popup("success")
def my_handler2(event2):
event2.stopObserver()
my_method3()
def my_method2():
r2.onAppear(Pattern("2.png").similar(0.95), my_handler2)
observe(10)
def my_handler(event):
doubleClick(event.getMatch())
event.stopObserver()
my_method2()
def my_method():
r1.onAppear("1.png", my_handler)
r1.observe(10)
my_method()
--
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