xdotool: simulating keyboard input

Published: 15 October 2013
on channel: Archived Yu-Jie Lin
15,078
27

xdotool can simulate inputs like keyboard or mouse, including pressing down and release, mouse cursor position. Also some window control functions.

In this video, I only showed very basic keyboard simulation, typing in a string, or pressing down a modifier key. There are more you can do with xdotool, see xdotool(1).

Example commands:

xdotool type string
xdotool key alt+Tab ctrl+alt+f 1 2 3 a b Return alt+F4
xdotool key --delay 100 f o o b a r # delay 100ms
xdotool keydown space # spamming space key

xdotool version 2.20110530.1


On this page of the site you can watch the video online xdotool: simulating keyboard input with a duration of online in good quality, which was uploaded by the user Archived Yu-Jie Lin 15 October 2013, share the link with friends and acquaintances, this video has already been watched 15,078 times on youtube and it was liked by 27 viewers. Enjoy your viewing!