资讯动态

javafx-jintellitype全局快捷键

发布时间:2026/9/10 9:24:06 来源:尧图企业网站定制
下载地址https://github.com/melloware/jintellitype引入jar包和按下面的层级放置dll文件这里可以直接下载jar包https://mvnrepository.com/artifact/com.melloware/jintellitype/1.5.6package 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(i1){System.out.println(134234234234);}if(i22){System.out.println(1111);}}});}}从https://github.com/melloware/jintellitype/tree/master/src/main/resources/com/melloware/jintellitype/windows下载dll文件注意dll文件的位置固定的3. 无需拷贝dll文件到系统的system32里面

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价