Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

robot class question  RSS feed

 
Jack Fong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As I understand, Windows, and perhaps some other operating systems, keep track of whether or not a key on the keyboard, or a mouse click, etc. is activated by a real live human using the actual interface device, versus if it is simulated programatically. I am told this information then travels with the key press to any application it is applied to, and the app can then discriminate between the two possibilities, if it has been written to do so.

I was wondering whether this applies to the robot class, for something like "robot.keyPress(KeyEvent.VK_G)" or whatever.

If it does, then is there any other way to avoid this, and actually make a simulator do what it is supposed to do - fully simulate HUMAN input, without unavoidably waving a big non human flag over its head? And/or is it possible to somehow manually override that flag for normal input methods?

If you don't know the answer, but you do know some key words - like what the flag I have been told about is called, etc., to help me in my google travels - that would also be much appreciated.

Thanks!

[ August 28, 2007: Message edited by: golden gate ]
[ August 28, 2007: Message edited by: golden gate ]
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15860
80
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"golden gate", please check your private messages. You can see them by clicking My Profile.
 
Micah Pezdirtz
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have this exact same question!
seeing as how the answer isn't posted, i want to ask this too. its driving me nuts trying to figure out how it works. the api entry wasn't helpful enough at all.
sorry for digging up an old thread
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!