• Post Reply Bookmark Topic Watch Topic
  • New Topic

emulate the keyboard strikes  RSS feed

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm trying to emulate the keyboard. My idea is this:
to creat a frame with all the A-Z chars and when the user press a button (say J) the output will be on a textped (or URL, depends where the focus is).

I googlized the topic and I found this class:

Robot r = new Robot();

Does anyone have any example to show how can this facilitate my problem
Thanks
Peter
 
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think this is possible (at least without native code). To start with, when you click on the A-Z buttons, that frame takes the focus, so that is where the input would arrive!
 
Bartender
Posts: 9443
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robot does what you want it to do. Take a look at this article to get started..
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank Joe this helps.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!