[1.0.1] Why does exit() only work half of the time?
Asked by
Zebara
I use exit() in a hotkey and it stops the Sikuli program half of the time. However, whenever I press the hotkey all the other code in it is always executed successfully. How can I fix this to make the Sikuli program stop every time I press the hotkey?
Here is the hotkey:
def stopSikuli(event):
print(
logger.
stopLogging
Env.
exit(1)
I initialize the hotkey later with:
Env.addHotkey("c", KeyModifier.CTRL, stopSikuli)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- RaiMan Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.