Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Wednesday, July 29, 2015

Example scripts for Minimise all the application which is running in foreground using java robot class

import java.awt.AWTException;
import java.awt.Robot;

public class MinimizeAllAppln {

public static void main(String[] args) throws AWTException, InterruptedException  {
// TODO Auto-generated method stub

for(int i=1;;i++)
{
Robot robot=new Robot();
robot.mouseMove(0, i);
}
}

}