D
D
di_gangsta2016-03-29 15:18:15
Java
di_gangsta, 2016-03-29 15:18:15

How to use KeyListener outside the program?

In the used class I prescribe: public class MyKeyLog implements KeyListener { ... }
Further event processing. This is what I'm interested in:
@Override
public void keyPressed(KeyEvent e) {
char letter = e.getKeyChar();
String total = null;
total = total + letter;
panel.setText(total);
}
In fact, I just made a field in which you can write text. What should be used so that the program can read text written NOT in this field? For example, I can open a notepad file and start writing something there, and the program will read the keyboard letters and mirror them into this panel.
What library or something else should I use? Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kegisa, 2018-02-27
@di_gangsta

Here is a link to the java keylogger, listens to all clicks, writes to a file, plus you can get this file through a bot in a telegram, if suddenly the logger starts on a remote computer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question