sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54016
Re: [Question #688352]: Mouse stuck in loop
Question #688352 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688352
RaiMan proposed the following answer:
- failsafe feature that terminates the program
add this to the top of your script:
def terminateHandler(event):
exit(1)
Env.addHotkey("c", KeyModifier.SHIFT + KeyModifier.ALT,
terminateHandler) # example
... use any suitable key combination.
Now pressing the key combo during scriptrun will terminate the
scriptrun.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.