diff --git a/supp2.txt b/supp2.txt new file mode 100644 index 0000000..cb839d8 --- /dev/null +++ b/supp2.txt @@ -0,0 +1,34 @@ +package supp_work; + +import java.awt.AWTException; +import java.awt.Robot; +import java.awt.event.KeyEvent; + +public class AppMain { + + public static void main(String[] args) throws AWTException, InterruptedException { + // TODO Auto-generated method stub + Robot robot = new Robot(); + + boolean isContinue = true; + + while(isContinue) { + System.out.println("wait 1m"); + for(int i=0;i<10*60;i++) + { + Thread.sleep(100); + if(!isContinue) break; + } + + if(!isContinue) break; + + System.out.println("press F5"); + robot.keyPress(KeyEvent.VK_F5); + Thread.sleep(100); + System.out.println("release F5"); + robot.keyRelease(KeyEvent.VK_F5); + + } + } + +}