Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Timer timer = new Timer(5 * 1000);
- Point toCompare = Mouse.getLocation();
- if(timer.getRemaining() == 0){
- if(toCompare == Mouse.getLocation()){
- timer.reset();
- Status = "Moving mouse slightly";
- //Mouse.moveSlightly();
- }else
- Mouse.moveSlightly();
- timer.reset();
- }
Add Comment
Please, Sign In to add comment