Running Sikuli script in background and watching for hotkeys
Hi Thanks for the help earlier. My questions is listed as answered and I have the script running but there is one hiccup. I was wondering if someone can help with that please:
Only way to send hotkeyevents is that the active window is the sikuli screen. Anyway to tell the script to wait for inputs from D3? So that when I press NUM4 in D3 it runs the script listed for hotkey Num 4. Once again thanks for the prompt help earlier really appreciate it. My script is below. Thanks.
def Rattack(event):
myApp.focus()
wait(1)
mouseDown(
wait(3)
mouseUp(
def Lattack(event):
myApp.focus()
keyDown(
wait(0.5)
mouseDown(
wait(2)
mouseUp(
keyUp(
Env.addHotkey(
Env.addHotkey(
myApp = App("Diablo III")
myApp.focus()
playground = App.focusedWindow()
while 1:
wait(0.01)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Robert for more information if necessary.