My problem is that when I run the following code in Processing my PC restarts..
import java.awt.AWTException;
import java.awt.Robot;
Robot robot;
void setup() {
size(400, 400);
try {
robot = new Robot();
}
catch (AWTException e) {
e.printStackTrace();
}
robot.mouseMove(screenWidth/2, screenHeight/2);
}
void draw() {
//println(frameCount);
}
I've tried the same code on another computer and it worked perfectly.. anyone any suggestion?