How do I make the Robot class hold a key down for a specified amount of time?
When I use the keyPress() method of the robot class, I notice that it enters the key quite rapidly, but I would like to hold down a key for a specified time, is this possible?
I already tried to run the keyPress() method in a seperate thread, and using Thread.sleep(5000); before using keyRelease(), but still, it doesn't work.
I hope someone can enlighten me!
Thanks in advance,
Re: How do I make the Robot class hold a key down for a specified amount of time?
Can you post a small program that compiles and executes and shows the problem.