搜索

PythonReactSEOPDF
GitHub Skill

key-simulation

Instructions for simulating keyboard input using the AutomateLinux daemon.

yanivprusman☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Key Simulation

The AutomateLinux daemon provides powerful capabilities to simulate keyboard input events and type strings directly.

Type a String

To type a text string as if it were entered on the keyboard:

d simulateInput --string "Hello World"

Simulate Raw Input Events

To simulate specific input events (like pressing a specific key code):

d simulateInput --type <EV_TYPE> --code <KEY_CODE> --value <VALUE>
  • EV_TYPE: Usually 1 for EV_KEY.
  • KEY_CODE: The Linux input event code (e.g., 28 for Enter, 30 for A).
  • VALUE: 1 for press, 0 for release, 2 for repeat.
Example: Pressing 'A'
# Press 'A' (code 30)
d simulateInput --type 1 --code 30 --value 1
# Release 'A'
d simulateInput --type 1 --code 30 --value 0

Underlying Utilities

The daemon uses InputMapper internally to emit these events to /dev/uinput via the virtual device it creates. This bypasses physical hardware constraints and allows for automation even when physical devices are ignored or grabbed.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!