sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51112
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
RaiMan proposed the following answer:
this you can do:
def handler(e):
# whatever needs to be done
RUNTIME.terminate(1, "script ececution stopped in handler)
everything else as normal
if you run this in the IDE, take care, that the script is saved before
running, since this ia brute force and stops the IDE.
most elegant:
- edit and save your script in the IDE
- run your script from commandline and watch it dying ;-)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.