I want to write an application that runs in the background and waits for the user to press a key in any other application. When the key is pressed, my application will do something.
Is this possible in Java? If so, how can this be accomplished?
JNativeHook provides a Java-based API for native keyboard and mouse event hooks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With