Documentation ¶
Rendered for windows/amd64
Index ¶
- Variables
- func ElementFromHandle(hwnd syscall.Handle) (element *wa.IUIAutomationElement, err error)
- func Finalize()
- func GetActiveElement(name string, elementType int64) (*wa.IUIAutomationElement, error)
- func GetActiveElementByType(elementType int64) (*wa.IUIAutomationElement, error)
- func GetAllChildren(parentElement *wa.IUIAutomationElement, elementTypes []int64) (*wa.IUIAutomationElementArray, error)
- func GetCurrentControlType(elem *wa.IUIAutomationElement) (name int, err error)
- func GetElementFromParent(parentElement *wa.IUIAutomationElement, name string, elementType int64) (*wa.IUIAutomationElement, error)
- func GetElementFromParentByType(parentElement *wa.IUIAutomationElement, elementType int64) (*wa.IUIAutomationElement, error)
- func GetElementRect(element *wa.IUIAutomationElement) (*win32wam.RECT, error)
- func GetElementText(element *wa.IUIAutomationElement) (string, error)
- func Initalize()
- func SetElementValue(element *wa.IUIAutomationElement, value string) error
- type IUIAutomationLegacyIAccessiblePattern
- type IUIAutomationLegacyIAccessiblePatternVtbl
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}}
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 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 GetCurrentControlType ¶
func GetCurrentControlType(elem *wa.IUIAutomationElement) (name int, err error)
https://learn.microsoft.com/en-us/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_currentcontroltype HRESULT get_CurrentControlType(
CONTROLTYPEID *retVal );
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 SetElementValue ¶
func SetElementValue(element *wa.IUIAutomationElement, value string) error
Types ¶
type IUIAutomationLegacyIAccessiblePattern ¶
type IUIAutomationLegacyIAccessiblePattern struct {
ole.IUnknown
}
func (*IUIAutomationLegacyIAccessiblePattern) SetValue ¶
func (pat *IUIAutomationLegacyIAccessiblePattern) SetValue(value string) error
https://docs.microsoft.com/en-us/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationlegacyiaccessiblepattern-setvalue HRESULT SetValue(
LPCWSTR szValue
);
func (*IUIAutomationLegacyIAccessiblePattern) VTable ¶
func (pat *IUIAutomationLegacyIAccessiblePattern) VTable() *IUIAutomationLegacyIAccessiblePatternVtbl
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 }
Click to show internal directories.
Click to hide internal directories.