Put this in a command or something, basically it tests all GFX... You're going to wanna insert a pause in the for loop though, or give it a rest period... Else' you'll lag like hell.
Basically all it does is tests the gfx, takes a screenshot and labels it GFXID.jpg
So... Yeah.
Code:/*This tests graphic occurances in runescape checks then for errors and then if no error occurs takes a picture so we know what it looks like*/
for(int i = 0; i < 1000; i++)//Loop
{
try//Try & catch
{
stillgfx(i);//Starts a gfx
Robot robot = new Robot();//Initializes the robot
Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());//Uses the size of the screen (Needed for different resolutions)
File target = new File("./" + i + ".png");//Creates the file
saveImageToFile(robot.createScreenCapture(area), target);//Puts the screenshot into the created file
} catch(Exception e) {//Catches errors
//do nothing
}
}
