I need to determine when mouse or keyboard activity is present. My application runs in the background (tray), and I need to detect this action even when my application is not in focus.
I don’t need to know which keys were pressed, but just WHEN they were pressed.
Can I do this using Java? I read some solutions using JNI and C ++ / C, but they seem to be OS specific. Is there an easy solution for this that will work with Windows, Linux and Mac?
Thank!
source
share