← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #215070]: Running Sikuli script in background and watching for hotkeys

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
try to add the hotkeys after switching to D3, this works for me with
some Safari automations on my Mac M-Lion.

myApp = App("Diablo III")
myApp.focus()
playground = App.focusedWindow()

Env.addHotkey(Key.NUM4,0, Rattack)
Env.addHotkey(Key.NUM5,0, Lattack)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.