8

I would like my computer to press the Esc key every 2 minutes. How can I do this? With an app or shell script or otherwise?

1

1 Answer 1

13

You could use xdotool Install xdotool

while true; do
   xdotool key Escape
   sleep 120
done

You can specify a window with the --window option

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .