How to simulate press key without keyboard

Hi,

I have a pc without keyboard that runs a Java application.

In this pc a popup is shown with these options: Ignore, Retry and Abort (with key nmemonics I, R and A).

I dont know how to simulate from a Java application a key sequence without press the keyboard. I mean, for example the java appplication must simulate a "ALT-A" key pressed and quit the popup.

Thanks in advance.

[412 byte] By [JAX82a] at [2007-11-27 10:47:02]
# 1

Have a look at the Robot class:

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html

prometheuzza at 2007-7-28 20:22:35 > top of Java-index,Java Essentials,Java Programming...
# 2

thanks man, I think this will solve the problem

JAX82a at 2007-7-28 20:22:35 > top of Java-index,Java Essentials,Java Programming...
# 3

> thanks man, I think this will solve the problem

You're welcome.

prometheuzza at 2007-7-28 20:22:35 > top of Java-index,Java Essentials,Java Programming...