-1

Is it possible to have a Java program read the keyboard buttons pressed all the time, even when I'm typing in notepad or chrome?

If so, how would I do this?

Kevin Panko
  • 8,356
  • 19
  • 50
  • 61
Yen
  • 25
  • 5

1 Answers1

4

You cannot do that in plain JAVA. you would need to hook up with JNI. you need to listen to the keyboard from the OS level.

eldjon
  • 2,800
  • 2
  • 20
  • 23