Add supp2.txt
fdfsd
This commit is contained in:
parent
c3cb1ff51f
commit
42d695f805
34
supp2.txt
Normal file
34
supp2.txt
Normal file
@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user