ax

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AXApp

type AXApp struct {
	// contains filtered or unexported fields
}

AXApp represent an app which is accessible through an hierarchy of accessible elements through accessible APIS It implements appHandler

func GetAXApp

func GetAXApp() (*AXApp, error)

Get the frontground app from the system and the hirarchy of accessible elements

func GetAXAppByTypeAndTitle

func GetAXAppByTypeAndTitle(appType, appTitle string) (*AXApp, error)

Get the frontground app from the system and the hirarchy of accessible elements

func (*AXApp) Click

func (a *AXApp) Click(element string, elementType *elements.ElementType, strict bool) error

func (*AXApp) ClickWithOrder

func (a *AXApp) ClickWithOrder(element string, elementType *elements.ElementType, strict bool, order int8) error

func (*AXApp) Exists

func (a *AXApp) Exists(element string, elementType *elements.ElementType, strict bool) (bool, error)

func (*AXApp) Print

func (a *AXApp) Print(elementFilter string, strict bool)

func (*AXApp) Reload

func (a *AXApp) Reload() (api.AppHandler, error)

In case we already have a ref to an app we can just reload it

func (*AXApp) SetValue

func (a *AXApp) SetValue(element string, elementType *elements.ElementType, strict bool, value string) error

func (*AXApp) SetValueOnFocus

func (a *AXApp) SetValueOnFocus(value string) error

func (*AXApp) SetValueWithOrder

func (a *AXApp) SetValueWithOrder(element string, elementType *elements.ElementType, strict bool, order int8, value string) error

type AXElement

type AXElement struct {
	Ref         axAPI.OSAXElement
	ID          string
	Value       string
	ElementType *elements.ElementType
	Parent      *AXElement
	Children    []*AXElement
}

func GetAXElement

func GetAXElement(element axAPI.OSAXElement, parent *AXElement) (*AXElement, error)

func (*AXElement) FindElements

func (a *AXElement) FindElements(id string, elementTypes []elements.ElementType, strict bool) (out []*AXElement)

Get the elements by type and id if id should match extacly strict should be true the output is a map with the element and the order on the app

func (*AXElement) Print

func (a *AXElement) Print(hierarchy bool, idFilter string, strict bool)

Prints the axelement, if hierarchy is set to true it will print the full hierarchy using the element as the root node

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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