I am using Ubuntu 12.04. For one of my applications I require to control the mouse in software using a script.
I understand that the mouse device is /dev/input/mice
. If I do a cat /dev/input/mice
and then move my mouse, I see a lot of output being dumped to the screen.
Now I wish to remove the mouse, and have a script which writes to /dev/input/mice
in order to control the mouse pointer
Please help me with commands for the following:
(1) Perform a left click
(2) Perform a right click
(3) Move the mouse from one location to another.
Kindly note that I am looking for a shell script solution, rather than a C/C++ solution.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…