Martin Zeltin Asked: 2011-08-29 06:48:29 +0800 CST2011-08-29 06:48:29 +0800 CST 2011-08-29 06:48:29 +0800 CST How to send keystrokes to Chrome in Ubuntu? 772 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? keyboard 1 Answers Voted Best Answer danjjl 2011-08-29T07:17:27+08:002011-08-29T07:17:27+08:00 You could use xdotool while true; do xdotool key Escape sleep 120 done You can specify a window with the --window option
You could use xdotool
You can specify a window with the
--window
option