Skip to content

Good tool to automate mouse movement and clicking in linux

  • by

Get the software and compile it:

http://www.semicomplete.com/projects/xdotool/

Install it …

make ; make install

Get the mouse position:

xdotool getmouselocation

Clicking forever there … Might be useful for …. refreshing a page …or clicking on a link

#!/bin/bash

while [ 1 ]; do
xdotool mousemove XXX YYY click 1 &
sleep 5
done

Sit back and enjoy .... And don't use it to do bad things ( like game cheating , autoclicking , auto refresh a web page )