 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
apple_amateur Guest
|
Posted: Mon Sep 08, 2008 5:59 pm Post subject: Key listener |
|
|
Hi all,
I will like to implement a stand alone java application that listens
to key stokes in the firefox environment. I understand that the
keyPressed(KeyEvent e) can be used to detect key press, but the focus
is limited to only the interface, described using java, and not for
external programs.
Is there anyway of doing what I am proposing without resorting to
commercial tools?
Thank you
aa |
|
| Back to top |
|
 |
jlp Guest
|
Posted: Sat Sep 13, 2008 6:56 pm Post subject: Re: Key listener |
|
|
apple_amateur a écrit :
| Quote: | Hi all,
I will like to implement a stand alone java application that listens
to key stokes in the firefox environment. I understand that the
keyPressed(KeyEvent e) can be used to detect key press, but the focus
is limited to only the interface, described using java, and not for
external programs.
Is there anyway of doing what I am proposing without resorting to
commercial tools?
Thank you
aa
The solution is to use JNI with the Microsoft library ( Windows OS) |
and GetAsyncKeyState function . Google for more information.
You can do the same but with more complexity with Unix/Xlib library. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|