← 返回命令列表

Linux command

ydotool 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

ydotoold

Left click

ydotool click 0xC0

Right click

ydotool click 0xC1

Example

ydotool key 56:1 62:1 62:0 56:0

说明

ydotool simulates keyboard and mouse input on Linux. Unlike xdotool, it works on both X11 and Wayland by using the kernel uinput module. Requires the ydotoold daemon to be running.

参数

click _CODE_
Simulate mouse click (0xC0=left, 0xC1=right, 0xC2=middle)
key _KEYCODE:STATE..._
Simulate key press/release (1=press, 0=release)
type _TEXT_
Type text string
mousemove _X_ _Y_
Move mouse to position

FAQ

What is the ydotool command used for?

ydotool simulates keyboard and mouse input on Linux. Unlike xdotool, it works on both X11 and Wayland by using the kernel uinput module. Requires the ydotoold daemon to be running.

How do I run a basic ydotool example?

Run `ydotoold` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does click _CODE_ do in ydotool?

Simulate mouse click (0xC0=left, 0xC1=right, 0xC2=middle)