Global keylogger in Java

后端 未结 3 1021
难免孤独
难免孤独 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:46

    If you only want to monitor activity in Java application windows, it's trivial – all you have to do is register to the appropriate event.

    But to monitor all mouse and keyboard activity in the OS you will have to hook to the API which is platform dependent and will require using the JNI

提交回复
热议问题