Guest User

Untitled

a guest
Dec 7th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1.    Timer timer = new Timer(5 * 1000);  
  2.  
  3.  
  4.                
  5.                     Point toCompare = Mouse.getLocation();
  6.                     if(timer.getRemaining() == 0){
  7.                         if(toCompare == Mouse.getLocation()){
  8.                             timer.reset();
  9.                             Status = "Moving mouse slightly";
  10.                             //Mouse.moveSlightly();
  11.                         }else
  12.                             Mouse.moveSlightly();
  13.                         timer.reset();
  14.                     }
Add Comment
Please, Sign In to add comment