Question #269003 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269003

rob barlow posted a new comment:
I use this in my script dont know if it will help you... If the mouse s
moved it kinda pause the script for me.

while True:
        StartPosition = Env.getMouseLocation()  #This variable is set to detect 
if you are actively moving the mouse.
        wait(1)
        EndPosition = Env.getMouseLocation()
        #
        while StartPosition != EndPosition: # if mouse is moved  wait
            StartPosition = Env.getMouseLocation()
            wait(3)
            EndPosition = Env.getMouseLocation()
            # you could put in a popup to warn user...
            popup(" Please Don't Use This Computer / Mouse")
        # end of loop 
       mouseMove(to somewhere on screen i want)

-- 
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     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to