AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Key listener

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Discussions
View previous topic :: View next topic  
Author Message
apple_amateur
Guest





PostPosted: Mon Sep 08, 2008 5:59 pm    Post subject: Key listener Reply with 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
Back to top
jlp
Guest





PostPosted: Sat Sep 13, 2008 6:56 pm    Post subject: Re: Key listener Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Discussions All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.