Quantumzblue

josiah mouse xy

May 17th, 2018
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/perl
  2. #
  3. #
  4. # Basic test to move a Mouse Cursor using Perl
  5. #
  6. #
  7.  
  8. use X11::GUITest qw(:ALL);
  9.  
  10. print DefaultScreen();
  11. ($x, $y) = GetMousePos();
  12. print "$x $y \n\n";
  13. MoveMouseAbs(650,250);
  14. sleep(1);
  15. ($x, $y) = GetMousePos();
  16. print "$x $y \n\n";
Add Comment
Please, Sign In to add comment