• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kwhat/jnativehook: Global keyboard and mouse listeners for Java.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

kwhat/jnativehook

开源软件地址:

https://github.com/kwhat/jnativehook

开源编程语言:

Java 68.6%

开源软件介绍:

JNativeHook: Global keyboard and mouse listeners for Java.

Maven Central Nightly Build

About

JNativeHook is a library to provide global keyboard and mouse listeners for Java. This will allow you to listen for global shortcuts or mouse motion that would otherwise be impossible using pure Java. To accomplish this task, JNativeHook leverages platform-dependent native code through Java's native interface to create low-level system-wide hooks and deliver those events to your application.

The following events are available via their respective listeners.

  • 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

In addition to global event listeners, this library has the ability to post native events back to the native operating system.

Licensing

JNativeHook is covered under the GNU Lesser General Public License which is an extension of the GNU General Public License that grants you additional distribution rights. As I understand it, you may use this library in proprietary (closed source) projects so long as it remains an external library with the same binary interface. You may modify the source code of this library to fulfill any proprietary need, as long as those modifications are made available under the terms and conditions of the LGPL. Please consult with a licenced attorney if you have additional licence compatibility questions or concerns.

Download

Binary distribution for JNativeHook can be found at the releases section of the project page. Maven users can use the <groupId>com.github.kwhat</groupId> and <artifactId>jnativehook</artifactId> to include this library automatically. The nightly builds can be found at the maven snapshot repository.

Software and Hardware Requirements

  • Java 1.8 - 17
  • 256 MB of RAM
  • Apple OS X 10.5 - 10.15
    • amd64, aarch64
    • Enable Access for Assistive Devices
  • Windows 2000 - 10
    • i586, amd64, arm7
  • X11 Linux
    • i586, amd64, arm7, aarch64
    • libxkbfile.so.1
    • libxkbcommon-x11.so.0
    • libxkbcommon.so.0
    • libX11-xcb.so.1
    • libX11.so.6
    • libxcb.so.1
    • libXinerama.so.1
    • libXt.so.6
    • libXtst.so.6
    • libc.so.6
    • libxcb-xkb.so.1
    • libdl.so.2
    • libXau.so.6
    • libXdmcp.so.6
    • libXext.so.6
    • libSM.so.6
    • libICE.so.6
    • libbsd.so.0
    • libuuid.so.1
    • librt.so.1
    • libpthread.so.0

Donate

If you have found this library useful, please consider making a donation. Donate

Documentation

Demo Application

The graphical example application exists to provide a real-time demonstration of raw output for all available native events. To run the application simply execute the jar file provided. Source code available at src/main/java/com/github/kwhat/jnativehook/example/NativeHookDemo.java.

Additional Information

Up-to-date source code and documentation available at: https://github.com/kwhat/jnativehook/




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap