← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #650553]: Hotkey not working

 

Question #650553 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/650553

    Status: Open => Answered

masuo proposed the following answer:
Any code not to exit program is necessary.

def startButton(event):
    click("1500539809932.png")

Env.addHotkey(Key.F1, KeyModifier.CTRL + KeyModifier.SHIFT, startButton)
#<--- change "S" to "s"

popup("Click [OK] to exit")   #<--- add this code

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