title: Simulate mouse click to window instead of screen
body: <p>Is it possible in MacOS X to send a mouse click to a specific window?</p>
  
  <p>I already managed to send a click to the entire screen via <code>CGPostMouseEvent</code>. 
  The windows i want to control overlap each other, so my next idea was to bring the proper window to the front before triggering the click. It works but ends in a total mess... ;-)</p>