← 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 => Needs information

RaiMan requested more information:
supposing you now have

SikuliX 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)

is this the whole script?

It needs at least a waiting loop, so it stays active and listen for
hotkeys.

Does it work if you press the hotkey manually while it is active?

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