How to write a java program that can run in background but still can detect any key press (with the corresponding key code)?
Printable View
How to write a java program that can run in background but still can detect any key press (with the corresponding key code)?
The program would need the focus to get the key press.
You would need JNI code for this app.
What are you trying to achieve? Are you trying to write a keylogger?
Yes I am trying to write keylogger. Any suggestion
Java's the wrong tool for the job. You need low-level access to the keyboard driver for your platform. Why can't you use a freely available (some are open-source) 3rd party keylogger?Quote:
I am trying to write keylogger. Any suggestion
Hey guys I want to write a virus in Java, can you tell me how to do that?