← Back to team overview

sikuli-driver team mailing list archive

[Question #695667]: Issue with Hotkey

 

New question #695667 on Sikuli:
https://answers.launchpad.net/sikuli/+question/695667

I'm trying to set a hotkey to end a script which is running in the IDE.

===========================
def exitHotkey(event):
    print "Exit"
    exit()

Env.addHotkey(Key.ESC, 0, exitHotkey)
print "start"
wait(60)
print "stop"
===========================


But if i press the Hotkey, the script and the IDE is closed and i have to restart it.
I tried other hotkeys but no success. Calling the function manually works fine.

OS: Linuxmint 20.1 Cinnamon
Sikulix: 2.0.4

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