title: Simulate Python Mouse Click win 8.1
body: <p>From work i got a job to make a python script which will click for testing the product of a "secret application" for windows 8.1. 
  The problem is that i can make it move the cursor but it can't click and i searched for win32 documentation on the internet but with no luck. Anyone who had this problem?
  This is the click code</p>
  
  <pre><code> def click(x,y):
          win32api.SetCursorPos((x, y)) 
          #Left click
          win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
          time.sleep(0.05)
          win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
  </code></pre>