Ubuntu: control the mouse



Question:

lets see if somebody can give me ideas I want to make the cursor automatically select ten different areas of the browser, and then read and save a small text which will appear every time(maybe on excel) thanks for your time


Solution:1

This sounds like something that could be accomplished with xdotool. You'll need to create a bash script that uses xdotool mousemove and click, likely in the following form:

xdotool mousemove [x location] [y location] click [mouse button, 1 for left click]

You can use some looping and conditional logic, and if you want to use relative mouse movement you should be able to replace xdotool mousemove with mousemove_relative


Solution:2

Actiona is a task automation tool. You can set actions for the mouse, keyboard, find an image in the screen and many more in a user friendly way.

sudo apt install actiona  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »