← 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: Answered => Open

Robert is still having a problem:
Thanks for the advise. Tried it like that and still no go. Sikuli-ide
window needs to be the active window for it to work.

myApp = App("Diablo III")
myApp.focus()
playground = App.focusedWindow()
Env.addHotkey(Key.NUM4,0, Rattack)
Env.addHotkey(Key.NUM5,0, Lattack)

while 1:
    wait(0.01)

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