I have a task: to listen to keystrokes of the keyboard, outside the application (in the browser, notepad, or just on the desktop). What can this be done with? Did not find any information about this.
|
2 answers
You can use the finished library. For example jkeymaster or jnativehook .
|
I think that after all, without crutches, this is solved using WinApi (namely installing hooks) and, accordingly, writing in C.
UPD: if we are talking about Windows, of course
|