← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679532]: How to stop waiting in main script by observer handler

 

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

    Status: Answered => Open

partosXP is still having a problem:
Yes, it works like you said - all process terminated.
And i've got some pleasure  -  watching it dying)

But i dont want to kill all process, i just want to start next loop of main script.
I'm using this tool for non-stop monitoring. One loop failed - log error and go next try. Just looking for way to force "next loop", whithout waiting all timeout in command "wait(obj,300)".
I'm sorry if i didnt explained it clearly.

Great thanks for your time, btw. May be its just impossible to do it like this :(
Feel free to close this thread, if you have no more ideas too.

P.S> main script (remind):

While True:
try:
onAppear("error.png",ErrorHandler)
observe(300,background = True) #set observer
wait("1.png",300) #up to 5 min waiting. Needs force "continue" loop here, if handler catches error (no loose time for waiting and dont execute other steps).
click("1.png")
except FindFailed:
print("cant find image")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.