in reply to Re^2: How to emulate Mouse operations through Perlin thread How to emulate Mouse operations through Perl
Then look at the documentation. The second function listed is SendMouse( ... ).