Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trap a KeyStroke

 
Thanh Le Quoc
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all !
How I can trap a KeyStroke although my program is not active (any other windows is activing)!.
Thanks to you !
tKC_07 <_!!!_> A believer of java
[ July 12, 2003: Message edited by: Thanh Le Quoc ]
 
Arvind Varma
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you be more specific with what do u mean by not active?
 
Thanh Le Quoc
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"My program is not active", it mean any other windows is activing !.
[ July 12, 2003: Message edited by: Thanh Le Quoc ]
 
Tom Angioletti
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean that the process running your JVM does not currently have focus, then I don't think you can. I've tried to find an answer to a similar question, and I think the OS never sends those events to your Java program. I'd be very interested to see if anyone knows a way to do this.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic