View difference between Paste ID: zjptDGbJ and qpDbKnaw
SHOW: | | - or go back to the newest paste.
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";