Advertisement
ZaynerTech

Move Mouse Cursor Test Perl

Jan 17th, 2013
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.26 KB | None | 0 0
  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";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement