← 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

j proposed the following answer:
As far as I know your handler methods Rattack and Lattack need a
parameter which will be the shortcut key event.

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

By the way, you can use wait(2.5) to wait for 2.5 seconds.

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