title: JNativeHook Post a native key event
body: <p>I tried to post a new native key pressing to the system using the java library <a href="https://github.com/kwhat/jnativehook" rel="nofollow noreferrer">https://github.com/kwhat/jnativehook</a>.
  The method </p>
  
  <pre><code>GlobalScreen.postNativeEvent();
  </code></pre>
  
  <p>Needs to get passed a NativeInputEvent object, which needs the Parameters</p>
  
  <ul>
  <li>An instance of Global Screen</li>
  <li>Two integers and one long</li>
  </ul>
  
  <p>Based on the documentation I can't figure out what the required parameters are and how to for example initialize a new GlobalScreen object. (<a href="https://github.com/kwhat/jnativehook/blob/master/src/java/org/jnativehook/NativeInputEvent.java" rel="nofollow noreferrer">https://github.com/kwhat/jnativehook/blob/master/src/java/org/jnativehook/NativeInputEvent.java</a>)</p>
  
  <p>Thanks for answers in advance!</p>