35 lines
673 B
Plaintext
35 lines
673 B
Plaintext
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);
|
|
|
|
}
|
|
}
|
|
|
|
}
|