Java全局的键盘和鼠标事件侦听功能:JNativeHook
jopen
11年前
JNativeHook 为 Java 程序提供全局的键盘和鼠标事件侦听功能。你可以来处理程序外的键盘输入和鼠标动作。当然 JNativeHook 使用了 JNI 技术调用了系统的方法来实现该功能。
支持的事件包括:
-
Key Press Events
-
Key Release Events
-
Key Typed Events
-
Mouse Down Events
-
Mouse Up Events
-
Mouse Click Events
-
Mouse Move Events
-
Mouse Drag Events
-
Mouse Wheel Events
支持的操作系统:
Linux
-
i586 or amd64
-
64 MB of RAM
-
Java 1.5 - 1.7
-
x11-libs/libX11 1.0 - 1.5
-
x11-libs/libXt 1.0 - 1.3
-
x11-libs/libXtst 1.0 - 1.2
-
x11-libs/libxcb 1.7 - 1.8
Mac OS X
-
i586, amd64, powerpc or powerpc64
-
256 MB of RAM
-
Java 1.5 - 1.7
-
Apple Mac OS X 10.5 - 10.9
-
Access for Assistive Devices Enabled
Windows
-
i586 or amd64
-
32-bit 64 MB of RAM
-
64-bit 128 MB of RAM
-
Java 1.5 - 1.7
-
Microsoft Windows 2000 - 8.1