2

可能重复:
在 Java 中的另一个窗口上操作时如何记录击键?

尝试在操作系统上获取所有击键。有任何想法吗?

4

1 回答 1

-2

Yeah possibly u should get the keystrokes of the users through the use of currentTimeMillis method or so in java in any of the keyPressed() or keyReleased() methods in java.Then save those time recordings in any variable get the time difference and then compare it with the keystrokes stored in database with a particular threshold.It should work then.During the recording phase make the user type the intended filed 5-6 times, take the keystrokes recording of the user and then save its mean in the database and compare it with the current keystrokes of the user while he tries to log in.

于 2012-09-17T05:02:17.617 回答