package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Oct 5, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
合成鼠标、键盘事件:移动、点击、按键。
- 依赖:
native(错误值)、native/internal/sys。
- 单独使用:可以,不需要窗口。除读取鼠标位置外都需要辅助功能权限。
import "github.com/dyike/keel/native/input"
input.MouseMove(100, 200)
input.Click(input.Left)
input.Tap("enter")
详见 原生能力 · input。
Documentation
¶
Package input synthesizes mouse and keyboard events. Everything except
MousePosition needs the Accessibility permission.
Click clicks at the current mouse position.
KeyDown and KeyUp take US-layout key names such as "a", "enter", "f5", "cmd".
MousePosition uses the same coordinates as screen.Display.
Tap presses and releases a key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.