• Post Reply Bookmark Topic Watch Topic
  • New Topic

Serious problem with Robot class  RSS feed

 
Vinicius Souza
Ranch Hand
Posts: 70
1
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, how are you!
So, Im create a remote control program and all going nice and Im using Robot.keyPress to send keys to the keyboard with sucess except if the key code is above 127. When the key code is above 127 the Robot just hangs and never return from keyPress method. Is robot keypress method only for 127 and bellow codes?
Obs. This occurs only with WinXp I tested with SuSe Linux and works perfectly.
Thanks!
 
Mauro Trevigno
Ranch Hand
Posts: 99
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post your code?

Do you debug in windows?

Do you recieve a java.lang.IllegalArgumentException in windows?


 
Guillermo Ishi
Ranch Hand
Posts: 789
C++ Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The keys below 128 are the normal alpha printable codes. That's the distinction that happens at 127/128.

No idea what you're trying to do really, but I think the problem might be that you aren't using a high level enough keyboard handler. You're using routines from down in where the distinction matters. Or the opposite could be the problem - using too high a level routine that filters out keys. At any rate, the problem is with the keyboard handler.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!