From d6e9cf00928c186d9a306d2e2fe59488731e6ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=94=CE=B7=CE=BC=CE=AE=CF=84=CF=81=CE=B7=CF=82=20=CE=A6?= =?UTF-8?q?=CE=B9=CE=BB=CE=AF=CF=80=CF=80=CE=BF=CF=85?= Date: Sun, 26 Nov 2017 11:47:45 +0200 Subject: [PATCH] xdotool: added more examples (#1650) --- pages/linux/xdotool.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pages/linux/xdotool.md b/pages/linux/xdotool.md index f5a43dfe6..dcb350a8d 100644 --- a/pages/linux/xdotool.md +++ b/pages/linux/xdotool.md @@ -9,3 +9,19 @@ - Click the right mouse button: `xdotool click {{3}}` + +- Get the id of the currently active window: + +`xdotool getactivewindow` + +- Focus on the window with id of 12345: + +`xdotool windowfocus --sync {{12345}}` + +- Type a message, with a 500ms delay for each letter: + +`xdotool type --delay {{500}} "Hello world"` + +- Press the enter key: + +`xdotool key {{KP_Enter}}`