onAppear handler will be called again
Asked by
larryli
Now, I use 2.0.2 version
as the following code, I already stopObserver in handler1, but when open app2, it also have the image1, as the log, handler1 will be executed again. whether stopObserver in handler1 just stop scan, it should clear image1 from onAppear?
if yes, is there any method?
def handler1(event):
event.
print "handler1 is ready"
global process
process = false
openApp(
global process
process = True
onAppear("image1", hander1)
observe(FOREVER)
while True:
wait(2)
if process == False: break
def handler2(event):
event.
print "handler2is ready"
openApp("app2 path")
onAppear("image2", hander2)
observe(FOREVER)
thank you very much
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.