Home arrow static arrow Java Programming [Archive] - CTRL + ALT + R
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - CTRL + ALT + R
This topic has 3 replies on 1 page.

Posts:9
Registered: 5/5/04
CTRL + ALT + R  
Jul 26, 2004 11:24 AM



 
How do you make it, so the program would press that?
I have tried that:
robot.keyPress(KeyEvent.VK_CONTROL);
sleep(100);
robot.keyPress(KeyEvent.VK_ALT);
sleep(100);
robot.keyPress(KeyEvent.VK_R);
But it doesn't word very good. Computer freezes and behaves very strange...please help.
 

Posts:24,517
Registered: 98-02-27
Re: CTRL + ALT + R  
Jul 26, 2004 1:46 PM (reply 1 of 3)



 
I've used the following to enter the "%" character in a text field:

robot.setAutoDelay(500);
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_5);
 

Posts:14,142
Registered: 99-04-02
Re: CTRL + ALT + R  
Jul 26, 2004 2:09 PM (reply 2 of 3)



 
maybe it's waiting for some keyRelease calls?
 

Posts:9
Registered: 5/5/04
Re: CTRL + ALT + R  
Jul 26, 2004 4:50 PM (reply 3 of 3)



 
The keyRelease helped. Thanks a lot =)
 
This topic has 3 replies on 1 page.