• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Serious problem with Robot class

 
Ranch Hand
Posts: 86
1
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 99
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you post your code?

Do you debug in windows?

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


 
Ranch Hand
Posts: 789
Python C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic