LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   keylogger in java? (https://www.linuxquestions.org/questions/programming-9/keylogger-in-java-271741/)

Laptop2250 12-29-2004 09:17 PM

keylogger in java?
 
Is it possible to make a keylogger in java? I don't mean a super secret keylogger, I mean just a plain keylogger that will save typed keys to a .txt file?

-If I am in firefox typing this, and I had a java keylogger open would it be able to save these words to a .txt file? Or would I have to be in the java window typing keys for them to register?

thx in advance

jlliagre 12-30-2004 05:44 PM

I guess you can't without using native methods due to the sandbox protection environment.

german 01-08-2005 05:27 PM

you would end up writing about 75% of the program in a native language, because Java is not allowed to see what is going on outside of its focus... IE if an AWT window is not selected, the Java process will not receive notification of the keystrokes


All times are GMT -5. The time now is 05:24 PM.