I tried to post a new native key pressing to the system using the java library https://github.com/kwhat/jnativehook. The method
GlobalScreen.postNativeEvent();
Needs to get passed a NativeInputEvent object, which needs the Parameters
- An instance of Global Screen
- Two integers and one long
Based on the documentation I can't figure out what the required parameters are and how to for example initialize a new GlobalScreen object. (https://github.com/kwhat/jnativehook/blob/master/src/java/org/jnativehook/NativeInputEvent.java)
Thanks for answers in advance!