Java: how to disable the mouse and keyboard system

Well, I'm not sure that this is possible even with Java, but I am working on a small program that is very similar to synergy, and I need to completely disable mouse and keyboard input on the host computer, but still write the input to the program. I cannot come up with any clean and reliable ways to do this using Java. Is it possible?

+3
source share
1 answer

In any case, you will have to use JNI for this purpose. Take a look at this blog , it will give you some insight.

+1
source

Source: https://habr.com/ru/post/1771881/


All Articles