title: How to add script if pointer not moving it will perform action
body: <p>I'm having trouble finding the best code/script to add in my code. If the pointer wont move it will perform a right click. Since my gesture is performing nly Left Click, I want to create a logic that it mouse not move it will perform left click after 1 sec ot any time.</p>
  
  <p>My code or my Left Click:</p>
  
  <pre><code>elif(len(conts)==1):
      x,y,w,h=cv2.boundingRect(conts[0])
      if(pinchFlag==0):
          if(abs((w*h-openw*openh)*100/(w*h))&lt;=360):
  
              pinchFlag=1
              mouse.press(Button.left)
              openx,openy,openw,openh=(0,0,0,0)
  </code></pre>