sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12039
Re: [Question #204038]: need simple lock code to keep event handler in line
Question #204038 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204038
RaiMan proposed the following answer:
Just realized the possible orphaned mouseDown():
def swipe(begin,end):
while True:
while Settings.myInHandler: wait(0.5)
mouseDown(begin, Button.LEFT)
if Settings.myInHandler: mouseUp(); continue
mouseMove(end)
if Settings.myInHandler: mouseUp(); continue
mouseUp()
if Settings.myInHandler: continue
type("c",KEY_CTRL)
wait(0.5)
if Settings.myInHandler: continue
break # if we finally come here, it should have worked.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.