Run the following command to install sudoapt-getinstallxdotool in Ubuntu: Success
Ubuntu Installation Method
Enter the following command:
Sudo apt-get install xdotool
Home: http://www.semicomplete.com/projects/xdotool/
Basic usage:
Xdotool mousemove x y
Move the mouse to a specific X and Y coordinate position on the screen
Xdotool click 1
Click the left mouse button. 1 indicates the left mouse, 2 indicates the middle mouse, and 3 indicates the right mouse.
Xdotool key ctrl + l
Press ctrl and l at the same time.
For more command details, enter man xdotool
This tool does not have built-in latency and loop functions. However, in linux, we advocate a software program to do one thing. This function can be implemented only by combining a little bit.
For example:
If you want to move the mouse to the left button every 10 seconds
We can use the watch command combination in the terminal to implement
Watch-n 10 xdotool click 1