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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to