Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Robot.class commands ignored by program

665916Nov 13 2010 — edited Nov 14 2010
Hi,

I wrote a program that uses Robot.class to control some client application.
It worked fine under windows XP.
That was a while back and now I've tried it again and it doesn't work.

Two things changes since then:

I am using windows 7 now.
I have a new version of the client application.

My questions are:
1. Is it possible to ignore commands coming from the robot class? How would the ignoring program know to do this? (normal mouse commands work of course)
2. Is there some problem in windows 7 using the robot class? (i doubt it since in works on other windows but...)
3. Is there any other way to send mouse/keyboard commands to other programs from java code?

Thanks in advance for any help.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 12 2010
Added on Nov 13 2010
4 comments
2,505 views