javafx-jintellitype全局快捷键
2026/9/10 9:23:56 网站建设 项目流程
  1. 下载地址
    https://github.com/melloware/jintellitype
  2. 引入jar包和按下面的层级放置dll文件
    这里可以直接下载jar包

https://mvnrepository.com/artifact/com.melloware/jintellitype/1.5.6

package sample.main;importcom.melloware.jintellitype.HotkeyListener;importcom.melloware.jintellitype.IntellitypeListener;importcom.melloware.jintellitype.JIntellitype;public class jnatest{public static void main(String[]args){JIntellitype.getInstance().registerHotKey(1, JIntellitype.MOD_ALT,(int)'A');JIntellitype.getInstance().registerHotKey(22, JIntellitype.MOD_ALT,101);JIntellitype.getInstance().addHotKeyListener(newHotkeyListener(){@Override public void onHotKey(int i){if(i==1){System.out.println("134234234234");}if(i==22){System.out.println("1111");}}});}}

从https://github.com/melloware/jintellitype/tree/master/src/main/resources/com/melloware/jintellitype/windows下载dll文件,注意dll文件的位置固定的

3. 无需拷贝dll文件到系统的system32里面

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询