sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33580
Re: [Question #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process
Question #268981 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268981
Status: Open => Answered
RaiMan proposed the following answer:
def handler(e):
loc = Mouse.at() # store current location
wait(3)
for i in range(5):
if loc.equals(Mouse.at()): # if current location == stored loc, the leave loop (not moved during the last 3 seconds)
break;
loc = Mouse.at()
wait(3)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.