Documentation
¶
Overview ¶
Package input provides reusable input helpers for the computer-use server.
Index ¶
- func ClickElement(el *axuiautomation.Element, button string, clickCount int) error
- func ClickElementAt(el *axuiautomation.Element, point LocalPoint, button string, clickCount int) error
- func DragElement(el *axuiautomation.Element, start, end LocalPoint, button string) error
- func ScrollElement(el *axuiautomation.Element, direction string, pages float64) error
- func SendKeyCombo(spec string) error
- func SendKeyComboToPID(pid int32, spec string) error
- type KeyCombo
- type LocalPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClickElement ¶
func ClickElement(el *axuiautomation.Element, button string, clickCount int) error
func ClickElementAt ¶
func ClickElementAt(el *axuiautomation.Element, point LocalPoint, button string, clickCount int) error
func DragElement ¶
func DragElement(el *axuiautomation.Element, start, end LocalPoint, button string) error
func ScrollElement ¶
func ScrollElement(el *axuiautomation.Element, direction string, pages float64) error
func SendKeyCombo ¶
func SendKeyComboToPID ¶
Types ¶
type KeyCombo ¶
type KeyCombo struct {
KeyCode uint16
Shift bool
Control bool
Option bool
Command bool
Label string
}
func ParseKeyCombo ¶
type LocalPoint ¶
func ScreenshotPointToWindowLocal ¶
func ScreenshotPointToWindowLocal(window computeruse.WindowInfo, x, y int) (LocalPoint, error)
Click to show internal directories.
Click to hide internal directories.