windows_accesibility_features

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: 8 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var IID_IUIAutomationLegacyIAccessiblePattern = &ole.GUID{0x828055ad, 0x355b, 0x4435, [8]byte{0x86, 0xd5, 0x3b, 0x51, 0xc1, 0x4a, 0x9b, 0x1b}}

https://github.com/mmarquee/ui-automation/blob/ec43c1449b11b5d0f3fd313367e242c6ce456bd9/src/main/java/mmarquee/uiautomation/IUIAutomationLegacyIAccessiblePattern.java

View Source
var (

	// https://github.com/tpn/winsdk-10/blob/master/Include/10.0.14393.0/um/UIAutomationClient.h
	IID_IUIAutomationTextPattern = &ole.GUID{0x32eba289, 0x3583, 0x42c9, [8]byte{0x9c, 0x59, 0x3b, 0x6d, 0x9a, 0x1e, 0x9b, 0x6a}}
)

Functions

func ElementFromHandle

func ElementFromHandle(hwnd syscall.Handle) (element *wa.IUIAutomationElement, err error)

func Finalize

func Finalize()

func GetActiveElement

func GetActiveElement(name string, elementType int64) (*wa.IUIAutomationElement, error)

func GetActiveElementByType

func GetActiveElementByType(elementType int64) (*wa.IUIAutomationElement, error)

func GetAllChildren

func GetAllChildren(parentElement *wa.IUIAutomationElement, elementTypes []int64) (*wa.IUIAutomationElementArray, error)

func GetElementFromParent

func GetElementFromParent(parentElement *wa.IUIAutomationElement, name string, elementType int64) (*wa.IUIAutomationElement, error)

func GetElementFromParentByType

func GetElementFromParentByType(parentElement *wa.IUIAutomationElement, elementType int64) (*wa.IUIAutomationElement, error)

func GetElementRect

func GetElementRect(element *wa.IUIAutomationElement) (*win32wam.RECT, error)

func GetElementText

func GetElementText(element *wa.IUIAutomationElement) (string, error)

// https://github.com/goldendict/goldendict/blob/master/guids.c var IID_IUIAutomationTextPattern = &ole.GUID{0x32eba289, 0x3583, 0x42c9, [8]byte{0x9c, 0x59, 0x3b, 0x6d, 0x9a, 0x1e, 0x9b, 0x6a}}

func Initalize

func Initalize()

func SetElementValue

func SetElementValue(element *wa.IUIAutomationElement, value string) error

Types

type IUIAutomationLegacyIAccessiblePattern

type IUIAutomationLegacyIAccessiblePattern struct {
	ole.IUnknown
}

func (*IUIAutomationLegacyIAccessiblePattern) VTable

type IUIAutomationLegacyIAccessiblePatternVtbl

type IUIAutomationLegacyIAccessiblePatternVtbl struct {
	ole.IUnknownVtbl

	DoDefaultAction             uintptr
	Get_CachedChildId           uintptr
	SetValue                    uintptr
	Get_CachedDefaultAction     uintptr
	Get_CachedDescription       uintptr
	Get_CachedHelp              uintptr
	Get_CachedKeyboardShortcut  uintptr
	Get_CachedName              uintptr
	Get_CachedRole              uintptr
	Get_CachedState             uintptr
	Get_CachedValue             uintptr
	Get_CurrentChildId          uintptr
	Get_CurrentDefaultAction    uintptr
	Get_CurrentDescription      uintptr
	Get_CurrentHelp             uintptr
	Get_CurrentKeyboardShortcut uintptr
	Get_CurrentName             uintptr
	Get_CurrentRole             uintptr
	Get_CurrentState            uintptr
	Get_CurrentValue            uintptr
	GetCachedSelection          uintptr
	GetCurrentSelection         uintptr
	GetIAccessible              uintptr
	Select                      uintptr
}

Jump to

Keyboard shortcuts

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