sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15412
Re: [Question #218319]: Making a mouse emulator in Sikuli
Question #218319 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218319
Status: Answered => Open
Robert is still having a problem:
Thanks for the prompt help. I did as you did. However out the three
functions, Only the Rclick (F3 hotkey worked). My updated code is
below. F2 and F4 cause nothing to happen.
global LD
def Rclick(event):
rightClick(Env.getMouseLocation())
def Lclick(event):
click(Env.getMouseLocation())
def LDown(event):
if LD == 0:
mouseDown(Button.LEFT)
LD = 1
else:
mouseUp(Button.LEFT)
LD = 0
LD = 0
Env.addHotkey(Key.F2,0, Lclick)
Env.addHotkey(Key.F3,0, Rclick)
Env.addHotkey(Key.F4,0, LDown)
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.