Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

global hotkeys in Java

I'm trying to make an app that uses global hotkeys, and I've been stuck in it for about 2 days trying to figure it out, before deciding to use jintellitype api. I always get a problem when I run the example provided on Jintellitype's website : Can't load IA 32-bit .dll on a AMD 64-bit platform, I use a 64-bit JRE, 64 bit windows, and couldn't find a solution for it : neither on the site/forums nor using google.

I'm not familiar with dealing with .dll files and JNI/JNA, but I think that to get things working I should generate a .dll file and add it to system folder, or just get a pre-made .dll file like the one provided by Jintellitype (please correct me if I was wrong).

So, what is the main idea behind using JIntellitype? How could I solve the problem I'm facing?

like image 845
a.u.r Avatar asked Apr 28 '12 15:04

a.u.r


1 Answers

I'm not sure what your problem was and made you look into jintellitype, but have you checked this post: Is there a way to get keyboard events without JFrame?

like image 122
Nicolas Mommaerts Avatar answered Oct 11 '22 13:10

Nicolas Mommaerts