← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #705066]: How to stop running script when ALT+SHIFT+C is not possible? --- workaround

 

Question #705066 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/705066

Description changed to:
---- workaround ----------------
# add to main script
def StopScript(event):
    sys.exit()
Env.addHotkey(<<key>>,<<modifier>>, StopScript)
# use a suitable key/modifier combination
------------------------

I'm running my script from command line, and i know that hotkey "ALT+SHIFT+C" can do that.
However, hotkey conflict makes this not work sometimes.... 
Is there any other reliable way to stop the current running script?

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