← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663268]: Hotkeys not working accordingly

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Script:
def openChrome(event):
    click("1516306798475.png")
# When the user pressed Ctrl+n, click the top-left chrome icon.
Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)

# this is the waiting loop
while True:
    wait(1)

if you start the script, it will run forever to be able to listen and
react.

In this setup the script has to be killed, if no longer needed.

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