← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #215002]: Help a newbie with a basic script please. Mine doesn't work.

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- The handlers need a parameter (even if not used):

def Rattack(event):
    mouseDown(Button.RIGHT)
    wait(3)
    mouseUp(Button.RIGHT)

--- you can set the modifier parameter to 0
... which means: no modifier

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

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