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.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp