Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how to capture keyboard events

  Asked By: Karina    Date: Sep 28    Category: Java    Views: 1274
  

I am trying to develop my event class.It must capture events in the
lowest level
Whenever I open an outside java application using Runtime.()
I must be able to know what are the keyboard events which occur
{whether its a,b,c....}
and the mouse events {basically the positions of clicking } and
record it in my application

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Adalia Fischer     Answered On: Sep 28

As far as I know, there is no way to do this outside of using JNI in
some fashion to interact with the operating system directly. Java can
only handle mouse  and keyboard  events inside a Java UI component (such
as an AWT window).

 
Didn't find what you were looking for? Find more on how to capture keyboard events Or get search suggestion and latest updates.




Tagged: