← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #269003]: Is there any way to prompt user with a pop-up saying "Please do not click on screen" and run sikuli script in background.

 

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.