title: java.awt.Robot: how to send mouse/keyboard events to a specific window? with cross-platform support?
body: <p>So from this question <a href="https://stackoverflow.com/questions/386792/in-java-swing-how-do-you-get-a-win32-window-handle-hwnd-reference-to-a-window">In Java Swing how do you get a Win32 window handle (hwnd) reference to a window?</a> it appears that I can get the window32 handle .
  would it be possible for java.awt.Robot to send mouse/keyboard events to that window handle? </p>
  
  <p>sometimes when I am sending keys via Robot, if the window gets minimized, it will start typing into other background irrelevant windows that are open. I want to prevent this by allowing Robot to send keys and mouse events to that specific window of interest.</p>
  
  <p>Would it be possible to achieve the same deal in Mac and Linux as well? be able to send Robot events to those  respective specific window handles?</p>