Ubuntu: how to make keyboard to press ctrl key after every 5 minutes?


I have the xdotool installed and would like it to:

  • press the Ctrl key every 5 minutes
  • scroll a window up and down every 5 minutes
  • make a mouse click every 5 minutes

How should I proceed?


Install xdotool. Should be in your linux repository.

while sleep 300; do     xdotool key Ctrl click 4 click 5 click 1  done  

In sequence the above causes control key to press and release click mouse button 4 (scroll up one unit) click mouse button 5 (scroll down one unit) click mouse button 1 (left mouse button)

If you want something more specific like control clicks, then you may need to give more information. xdotool can also move the mouse pointer around send text, and do a lot of other things as well.

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