title: Program prevents mouse movement
body: <p>I have a click bot for a game and haven't used it for a while.
  I installed it new(maybe there was a new version) and my bot isn't working anymore. It seems like the event is somehow blocked when the game is activated.</p>
  
  <p>I activate the game, with this:</p>
  
  <pre><code>shell=win32com.client.Dispatch("Wscript.Shell")
  success = shell.AppActivate("Game)
  </code></pre>
  
  <p>I tried 2 methods to move the mouse:</p>
  
  <pre><code>win32api.SetCursorPos((x,y)) 
  </code></pre>
  
  <p>That gives me this error.</p>
  
  <pre><code>pywintypes.error: (0, 'SetCursorPos', 'No error message is available')
  </code></pre>
  
  <p>The other method is:</p>
  
  <pre><code>nx = int(x*65535/win32api.GetSystemMetrics(0))
  ny = int(y*65535/win32api.GetSystemMetrics(1))
  win32api.mouse_event(win32con.MOUSEEVENTF_ABSOLUTE|win32con.MOUSEEVENTF_MOVE,nx,ny)
  </code></pre>
  
  <p>which doesn't work and doesn't give me an error message.</p>
  
  <p>When the game window is not activated, the cursor moves without a problem.</p>
  
  <p>Does anybody know a workaround for this?</p>
  
  <p>Edit: I am using Microsoft Windows 8.1</p>