input

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package input provides reusable input helpers for the computer-use server.

Index

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 SendKeyCombo(spec string) error

func SendKeyComboToPID

func SendKeyComboToPID(pid int32, spec string) error

Types

type KeyCombo

type KeyCombo struct {
	KeyCode uint16
	Shift   bool
	Control bool
	Option  bool
	Command bool
	Label   string
}

func ParseKeyCombo

func ParseKeyCombo(spec string) (KeyCombo, error)

type LocalPoint

type LocalPoint struct {
	X int
	Y int
}

func ScreenshotPointToWindowLocal

func ScreenshotPointToWindowLocal(window computeruse.WindowInfo, x, y int) (LocalPoint, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL