Global keylogger in Java

后端 未结 3 1011
难免孤独
难免孤独 2020-12-07 04:19

I\'m writing an application that monitors the person’s mouse and keyboard. If they have not used the keyboard or mouse for 1 minute, it will pop up a message that says “You

3条回答
  •  自闭症患者
    2020-12-07 04:45

    If you want to do this for only your application, then its very simple. You can simply add listerns i.e Toolkit.getDefaultToolkit.addAwtEventListener(..).

    But for the system as a whole, I am afraid, it cannot be done in java, you may use JNI though.

提交回复
热议问题