w32uiautomation

package module
v0.0.0-...-94ee2fd Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 5 Imported by: 0

README

w32uiautomation

A library written in Go for Windows UI Automation.

在原作者的基础上增加了相关方法

License

MIT

Documentation

Overview

+build amd64

Index

Constants

View Source
const (
	UIA_ButtonControlTypeId      = 50000
	UIA_CalendarControlTypeId    = 50001
	UIA_CheckBoxControlTypeId    = 50002
	UIA_ComboBoxControlTypeId    = 50003
	UIA_EditControlTypeId        = 50004
	UIA_HyperlinkControlTypeId   = 50005
	UIA_ImageControlTypeId       = 50006
	UIA_ListItemControlTypeId    = 50007
	UIA_ListControlTypeId        = 50008
	UIA_MenuControlTypeId        = 50009
	UIA_MenuBarControlTypeId     = 50010
	UIA_MenuItemControlTypeId    = 50011
	UIA_ProgressBarControlTypeId = 50012
	UIA_RadioButtonControlTypeId = 50013
	UIA_ScrollBarControlTypeId   = 50014
	UIA_SliderControlTypeId      = 50015
	UIA_SpinnerControlTypeId     = 50016
	UIA_StatusBarControlTypeId   = 50017
	UIA_TabControlTypeId         = 50018
	UIA_TabItemControlTypeId     = 50019
	UIA_TextControlTypeId        = 50020
	UIA_ToolBarControlTypeId     = 50021
	UIA_ToolTipControlTypeId     = 50022
	UIA_TreeControlTypeId        = 50023
	UIA_TreeItemControlTypeId    = 50024
	UIA_CustomControlTypeId      = 50025
	UIA_GroupControlTypeId       = 50026
	UIA_ThumbControlTypeId       = 50027
	UIA_DataGridControlTypeId    = 50028
	UIA_DataItemControlTypeId    = 50029
	UIA_DocumentControlTypeId    = 50030
	UIA_SplitButtonControlTypeId = 50031
	UIA_WindowControlTypeId      = 50032
	UIA_PaneControlTypeId        = 50033
	UIA_HeaderControlTypeId      = 50034
	UIA_HeaderItemControlTypeId  = 50035
	UIA_TableControlTypeId       = 50036
	UIA_TitleBarControlTypeId    = 50037
	UIA_SeparatorControlTypeId   = 50038
)
View Source
const (
	StructureChangeType_ChildAdded = iota
	StructureChangeType_ChildRemoved
	StructureChangeType_ChildrenInvalidated
	StructureChangeType_ChildrenBulkAdded
	StructureChangeType_ChildrenBulkRemoved
	StructureChangeType_ChildrenReordered
)
View Source
const (
	TextEditChangeType_None = iota
	TextEditChangeType_AutoCorrect
	TextEditChangeType_Composition
	TextEditChangeType_CompositionFinalized
	TextEditChangeType_AutoComplete
)
View Source
const (
	UIA_AnnotationPatternId = 10023 // Identifies the Annotation control pattern. Supported starting with Windows 8.

	// 标识 CustomNavigation 控件模式。 支持从Windows 10开始。
	UIA_CustomNavigationPatternId = 10033

	UIA_DockPatternId              = 10011 // Identifies the Dock control pattern.
	UIA_DragPatternId              = 10030 // Identifies the Drag control pattern. Supported starting with Windows 8.
	UIA_DropTargetPatternId        = 10031 // Identifies the DropTarget control pattern. Supported starting with Windows 8.
	UIA_ExpandCollapsePatternId    = 10005 // Identifies the ExpandCollapse control pattern.
	UIA_GridItemPatternId          = 10007 // Identifies the GridItem control pattern.
	UIA_GridPatternId              = 10006 // Identifies the Grid control pattern.
	UIA_InvokePatternId            = 10000 // Identifies the Invoke control pattern.
	UIA_ItemContainerPatternId     = 10019 // Identifies the ItemContainer control pattern.
	UIA_LegacyIAccessiblePatternId = 10018 // Identifies the LegacyIAccessible control pattern.
	UIA_MultipleViewPatternId      = 10008 // Identifies the MultipleView control pattern.
	UIA_ObjectModelPatternId       = 10022 // Identifies the ObjectModel control pattern. Supported starting with Windows 8.
	UIA_RangeValuePatternId        = 10003 // Identifies the RangeValue control pattern.
	UIA_ScrollItemPatternId        = 10017 // Identifies the ScrollItem control pattern.
	UIA_ScrollPatternId            = 10004 // Identifies the Scroll control pattern.
	UIA_SelectionItemPatternId     = 10010 // Identifies the SelectionItem control pattern.
	UIA_SelectionPatternId         = 10001 // Identifies the Selection control pattern.
	UIA_SpreadsheetPatternId       = 10026 // Identifies the Spreadsheet control pattern. Supported starting with Windows 8.
	UIA_SpreadsheetItemPatternId   = 10027 // Identifies the SpreadsheetItem control pattern. Supported starting with Windows 8.
	UIA_StylesPatternId            = 10025 // Identifies the Styles control pattern. Supported starting with Windows 8.
	UIA_SynchronizedInputPatternId = 10021 // Identifies the SynchronizedInput control pattern.
	UIA_TableItemPatternId         = 10013 // Identifies the TableItem control pattern.
	UIA_TablePatternId             = 10012 // Identifies the Table control pattern.
	UIA_TextChildPatternId         = 10029 // Identifies the TextChild control pattern. Supported starting with Windows 8.
	UIA_TextEditPatternId          = 10032 // Identifies the TextEdit control pattern. Supported starting with Windows 8.1.
	UIA_TextPatternId              = 10014 // Identifies the Text control pattern.
	UIA_TextPattern2Id             = 10024 // Identifies the second version of the Text control pattern. Supported starting with Windows 8.
	UIA_TogglePatternId            = 10015 // Identifies the Toggle control pattern.
	UIA_TransformPatternId         = 10016 // Identifies the Transform control pattern.
	UIA_TransformPattern2Id        = 10028 // Identifies the second version of the Transform control pattern. Supported starting with Windows 8.
	UIA_ValuePatternId             = 10002 // Identifies the Value control pattern.
	UIA_VirtualizedItemPatternId   = 10020 // Identifies the VirtualizedItem control pattern.
	UIA_WindowPatternId            = 10009 // Identifies the Window control pattern.
)
View Source
const (
	UIA_RuntimeIdPropertyId                           = 30000
	UIA_BoundingRectanglePropertyId                   = 30001
	UIA_ProcessIdPropertyId                           = 30002
	UIA_ControlTypePropertyId                         = 30003
	UIA_LocalizedControlTypePropertyId                = 30004
	UIA_NamePropertyId                                = 30005
	UIA_AcceleratorKeyPropertyId                      = 30006
	UIA_AccessKeyPropertyId                           = 30007
	UIA_HasKeyboardFocusPropertyId                    = 30008
	UIA_IsKeyboardFocusablePropertyId                 = 30009
	UIA_IsEnabledPropertyId                           = 30010
	UIA_AutomationIdPropertyId                        = 30011
	UIA_ClassNamePropertyId                           = 30012
	UIA_HelpTextPropertyId                            = 30013
	UIA_ClickablePointPropertyId                      = 30014
	UIA_CulturePropertyId                             = 30015
	UIA_IsControlElementPropertyId                    = 30016
	UIA_IsContentElementPropertyId                    = 30017
	UIA_LabeledByPropertyId                           = 30018
	UIA_IsPasswordPropertyId                          = 30019
	UIA_NativeWindowHandlePropertyId                  = 30020
	UIA_ItemTypePropertyId                            = 30021
	UIA_IsOffscreenPropertyId                         = 30022
	UIA_OrientationPropertyId                         = 30023
	UIA_FrameworkIdPropertyId                         = 30024
	UIA_IsRequiredForFormPropertyId                   = 30025
	UIA_ItemStatusPropertyId                          = 30026
	UIA_IsDockPatternAvailablePropertyId              = 30027
	UIA_IsExpandCollapsePatternAvailablePropertyId    = 30028
	UIA_IsGridItemPatternAvailablePropertyId          = 30029
	UIA_IsGridPatternAvailablePropertyId              = 30030
	UIA_IsInvokePatternAvailablePropertyId            = 30031
	UIA_IsMultipleViewPatternAvailablePropertyId      = 30032
	UIA_IsRangeValuePatternAvailablePropertyId        = 30033
	UIA_IsScrollPatternAvailablePropertyId            = 30034
	UIA_IsScrollItemPatternAvailablePropertyId        = 30035
	UIA_IsSelectionItemPatternAvailablePropertyId     = 30036
	UIA_IsSelectionPatternAvailablePropertyId         = 30037
	UIA_IsTablePatternAvailablePropertyId             = 30038
	UIA_IsTableItemPatternAvailablePropertyId         = 30039
	UIA_IsTextPatternAvailablePropertyId              = 30040
	UIA_IsTogglePatternAvailablePropertyId            = 30041
	UIA_IsTransformPatternAvailablePropertyId         = 30042
	UIA_IsValuePatternAvailablePropertyId             = 30043
	UIA_IsWindowPatternAvailablePropertyId            = 30044
	UIA_ValueValuePropertyId                          = 30045
	UIA_ValueIsReadOnlyPropertyId                     = 30046
	UIA_RangeValueValuePropertyId                     = 30047
	UIA_RangeValueIsReadOnlyPropertyId                = 30048
	UIA_RangeValueMinimumPropertyId                   = 30049
	UIA_RangeValueMaximumPropertyId                   = 30050
	UIA_RangeValueLargeChangePropertyId               = 30051
	UIA_RangeValueSmallChangePropertyId               = 30052
	UIA_ScrollHorizontalScrollPercentPropertyId       = 30053
	UIA_ScrollHorizontalViewSizePropertyId            = 30054
	UIA_ScrollVerticalScrollPercentPropertyId         = 30055
	UIA_ScrollVerticalViewSizePropertyId              = 30056
	UIA_ScrollHorizontallyScrollablePropertyId        = 30057
	UIA_ScrollVerticallyScrollablePropertyId          = 30058
	UIA_SelectionSelectionPropertyId                  = 30059
	UIA_SelectionCanSelectMultiplePropertyId          = 30060
	UIA_SelectionIsSelectionRequiredPropertyId        = 30061
	UIA_GridRowCountPropertyId                        = 30062
	UIA_GridColumnCountPropertyId                     = 30063
	UIA_GridItemRowPropertyId                         = 30064
	UIA_GridItemColumnPropertyId                      = 30065
	UIA_GridItemRowSpanPropertyId                     = 30066
	UIA_GridItemColumnSpanPropertyId                  = 30067
	UIA_GridItemContainingGridPropertyId              = 30068
	UIA_DockDockPositionPropertyId                    = 30069
	UIA_ExpandCollapseExpandCollapseStatePropertyId   = 30070
	UIA_MultipleViewCurrentViewPropertyId             = 30071
	UIA_MultipleViewSupportedViewsPropertyId          = 30072
	UIA_WindowCanMaximizePropertyId                   = 30073
	UIA_WindowCanMinimizePropertyId                   = 30074
	UIA_WindowWindowVisualStatePropertyId             = 30075
	UIA_WindowWindowInteractionStatePropertyId        = 30076
	UIA_WindowIsModalPropertyId                       = 30077
	UIA_WindowIsTopmostPropertyId                     = 30078
	UIA_SelectionItemIsSelectedPropertyId             = 30079
	UIA_SelectionItemSelectionContainerPropertyId     = 30080
	UIA_TableRowHeadersPropertyId                     = 30081
	UIA_TableColumnHeadersPropertyId                  = 30082
	UIA_TableRowOrColumnMajorPropertyId               = 30083
	UIA_TableItemRowHeaderItemsPropertyId             = 30084
	UIA_TableItemColumnHeaderItemsPropertyId          = 30085
	UIA_ToggleToggleStatePropertyId                   = 30086
	UIA_TransformCanMovePropertyId                    = 30087
	UIA_TransformCanResizePropertyId                  = 30088
	UIA_TransformCanRotatePropertyId                  = 30089
	UIA_IsLegacyIAccessiblePatternAvailablePropertyId = 30090
	UIA_LegacyIAccessibleChildIdPropertyId            = 30091
	UIA_LegacyIAccessibleNamePropertyId               = 30092
	UIA_LegacyIAccessibleValuePropertyId              = 30093
	UIA_LegacyIAccessibleDescriptionPropertyId        = 30094
	UIA_LegacyIAccessibleRolePropertyId               = 30095
	UIA_LegacyIAccessibleStatePropertyId              = 30096
	UIA_LegacyIAccessibleHelpPropertyId               = 30097
	UIA_LegacyIAccessibleKeyboardShortcutPropertyId   = 30098
	UIA_LegacyIAccessibleSelectionPropertyId          = 30099
	UIA_LegacyIAccessibleDefaultActionPropertyId      = 30100
	UIA_AriaRolePropertyId                            = 30101
	UIA_AriaPropertiesPropertyId                      = 30102
	UIA_IsDataValidForFormPropertyId                  = 30103
	UIA_ControllerForPropertyId                       = 30104
	UIA_DescribedByPropertyId                         = 30105
	UIA_FlowsToPropertyId                             = 30106
	UIA_ProviderDescriptionPropertyId                 = 30107
	UIA_IsItemContainerPatternAvailablePropertyId     = 30108
	UIA_IsVirtualizedItemPatternAvailablePropertyId   = 30109
	UIA_IsSynchronizedInputPatternAvailablePropertyId = 30110
)
View Source
const (
	TreeScope_Element     = 0x1
	TreeScope_Children    = 0x2
	TreeScope_Descendants = 0x4
	TreeScope_Parent      = 0x8
	TreeScope_Ancestors   = 0x10
	TreeScope_Subtree     = TreeScope_Element | TreeScope_Children | TreeScope_Descendants
)

Variables

View Source
var CLSID_CUIAutomation = &ole.GUID{0xff48dba4, 0x60ef, 0x4201, [8]byte{0xaa, 0x87, 0x54, 0x10, 0x3e, 0xef, 0x59, 0x4e}}
View Source
var CLSID_CUIAutomation8 = ole.NewGUID("e22ad333-b25f-460c-83d0-0581107395c9")

CUIAutomation8为e22ad333-b25f-460c-83d0-0581107395c9 win8之后的系统版本使用此字段

View Source
var IID_IUIAutomation = &ole.GUID{0x30cbe57d, 0xd9d0, 0x452a, [8]byte{0xab, 0x13, 0x7a, 0xc5, 0xac, 0x48, 0x25, 0xee}}
View Source
var IID_IUIAutomation2 = ole.NewGUID("34723aff-0c9d-49d0-9896-7ab52df8cd8a")

IID为34723aff-0c9d-49d0-9896-7ab52df8cd8a

View Source
var IID_IUIAutomation3 = ole.NewGUID("73D768DA-9B51-4B89-936E-C209290973E7")

IID为73D768DA-9B51-4B89-936E-C209290973E7

View Source
var IID_IUIAutomation4 = ole.NewGUID("1189C02A-05F8-4319-8E21-E817E3DB2860")

IID为1189C02A-05F8-4319-8E21-E817E3DB2860

View Source
var IID_IUIAutomation5 = ole.NewGUID("25F700C8-D816-4057-A9DC-3CBDEE77E256")

IID为25F700C8-D816-4057-A9DC-3CBDEE77E256

View Source
var IID_IUIAutomation6 = ole.NewGUID("AAE072DA-29E3-413D-87A7-192DBF81ED10")

IID为AAE072DA-29E3-413D-87A7-192DBF81ED10

View Source
var IID_IUIAutomationAndCondition = &ole.GUID{0xa7d0af36, 0xb912, 0x45fe, [8]byte{0x98, 0x55, 0x09, 0x1d, 0xdc, 0x17,
	0x4a, 0xec}}

IID为a7d0af36-b912-45fe-9855-091ddc174aec

View Source
var IID_IUIAutomationBoolCondition = &ole.GUID{0x1b4e1f2e, 0x75eb, 0x4d0b, [8]byte{0x89, 0x52, 0x5a, 0x69, 0x98,
	0x8e, 0x23, 0x07}}

IID为1b4e1f2e-75eb-4d0b-8952-5a69988e2307

View Source
var IID_IUIAutomationCacheRequest = &ole.GUID{0xb32a92b5, 0xbc25, 0x4078, [8]byte{0x9c, 0x08, 0xd7, 0xee, 0x95, 0xc4, 0x8e, 0x03}}
View Source
var IID_IUIAutomationCondition = &ole.GUID{0x352ffba8, 0x0973, 0x437c, [8]byte{0xa6, 0x1f, 0xf6, 0x4c, 0xaf, 0xd8, 0x1d, 0xf9}}

IID为352ffba8-0973-437c-a61f-f64cafd81df9

View Source
var IID_IUIAutomationElement = &ole.GUID{0xd22108aa, 0x8ac5, 0x49a5, [8]byte{0x83, 0x7b, 0x37, 0xbb, 0xb3, 0xd7, 0x59, 0x1e}}
View Source
var IID_IUIAutomationElement2 = ole.NewGUID("6749c683-f70d-4487-a698-5f79d55290d6")

IID为6749c683-f70d-4487-a698-5f79d55290d6

View Source
var IID_IUIAutomationElement3 = ole.NewGUID("8471DF34-AEE0-4A01-A7DE-7DB9AF12C296")

IID为8471DF34-AEE0-4A01-A7DE-7DB9AF12C296

View Source
var IID_IUIAutomationElement4 = ole.NewGUID("3B6E233C-52FB-4063-A4C9-77C075C2A06B")

IID为3B6E233C-52FB-4063-A4C9-77C075C2A06B

View Source
var IID_IUIAutomationElement5 = ole.NewGUID("98141C1D-0D0E-4175-BBE2-6BFF455842A7")

IID为98141C1D-0D0E-4175-BBE2-6BFF455842A7

View Source
var IID_IUIAutomationElement6 = ole.NewGUID("4780d450-8bca-4977-afa5-a4a517f555e3")

IID为4780d450-8bca-4977-afa5-a4a517f555e3

View Source
var IID_IUIAutomationElement7 = ole.NewGUID("204e8572-cfc3-4c11-b0c8-7da7420750b7")

IID为204e8572-cfc3-4c11-b0c8-7da7420750b7

View Source
var IID_IUIAutomationElement8 = ole.NewGUID("8C60217D-5411-4CDE-BCC0-1CEDA223830C")

IID为8C60217D-5411-4CDE-BCC0-1CEDA223830C

View Source
var IID_IUIAutomationElement9 = ole.NewGUID("39325fac-039d-440e-a3a3-5eb81a5cecc3")

IID为39325fac-039d-440e-a3a3-5eb81a5cecc3

View Source
var IID_IUIAutomationElementArray = &ole.GUID{0x14314595, 0xb4bc, 0x4055, [8]byte{0x95, 0xf2, 0x58, 0xf2, 0xe4, 0x2c,
	0x98, 0x55}}

IID为14314595-b4bc-4055-95f2-58f2e42c9855

View Source
var IID_IUIAutomationExpandCollapsePattern = &ole.GUID{0x619be086, 0x1f4e, 0x4ee4, [8]byte{0xba, 0xfa, 0x21, 0x01, 0x28, 0x73, 0x87, 0x30}}
View Source
var IID_IUIAutomationFocusChangedEventHandler = &ole.GUID{0xc270f6b5, 0x5c69, 0x4290, [8]byte{0x97, 0x45, 0x7a, 0x7f, 0x97,
	0x16, 0x94, 0x68}}

IID为c270f6b5-5c69-4290-9745-7a7f97169468

View Source
var IID_IUIAutomationInvokePattern = &ole.GUID{0xfb377fbe, 0x8ea6, 0x46d5, [8]byte{0x9c, 0x73, 0x64, 0x99, 0x64, 0x2d, 0x30, 0x59}}
View Source
var IID_IUIAutomationNotCondition = &ole.GUID{0xf528b657, 0x847b, 0x498c, [8]byte{0x88, 0x96, 0xd5, 0x2b, 0x56,
	0x54, 0x07, 0xa1}}

IID为f528b657-847b-498c-8896-d52b565407a1

View Source
var IID_IUIAutomationPropertyChangedEventHandler = &ole.GUID{0x40cd37d4, 0xc756, 0x4b0c, [8]byte{0x8c, 0x6f, 0xbd, 0xdf,
	0xee, 0xb1, 0x3b, 0x50}}

IID为40cd37d4-c756-4b0c-8c6f-bddfeeb13b50

View Source
var IID_IUIAutomationPropertyCondition = &ole.GUID{0x99ebf2cb, 0x5578, 0x4267, [8]byte{0x9a, 0xd4, 0xaf, 0xd6, 0xea,
	0x77, 0xe9, 0x4b}}

IID为99ebf2cb-5578-4267-9ad4-afd6ea77e94b

View Source
var IID_IUIAutomationSelectionItemPattern = &ole.GUID{0xa8efa66a, 0x0fda, 0x421a, [8]byte{0x91, 0x94, 0x38, 0x02, 0x1f, 0x35, 0x78, 0xea}}
View Source
var IID_IUIAutomationStructureChangedEventHandler = &ole.GUID{0xe81d1b4e, 0x11c5, 0x42f8, [8]byte{0x97, 0x54, 0xe7, 0x03, 0x6c, 0x79, 0xf0, 0x54}}
View Source
var IID_IUIAutomationTextEditTextChangedEventHandler = &ole.GUID{0x92FAA680, 0xE704, 0x4156, [8]byte{0x93, 0x1A, 0xE3,
	0x2D, 0x5B, 0xB3, 0x8F, 0x3F}}

IID为92FAA680-E704-4156-931A-E32D5BB38F3F

Functions

func Collapse

func Collapse(element *IUIAutomationElement) error

func Expand

func Expand(element *IUIAutomationElement) error

func Invoke

func Invoke(element *IUIAutomationElement) error

func NewVariantString

func NewVariantString(s string) ole.VARIANT

func Select

func Select(element *IUIAutomationElement) error

func VariantToUintptrArray

func VariantToUintptrArray(v ole.VARIANT) []uintptr

Types

type CONTROLTYPEID

type CONTROLTYPEID uintptr

type IUIAutomation

type IUIAutomation struct {
	ole.IUnknown
}

func NewUIAutomation

func NewUIAutomation() (*IUIAutomation, error)

NewUIAutomation

@Description: UIAutomation构造函数
@return *IUIAutomation
@return error

func (*IUIAutomation) AddStructureChangedEventHandler

func (auto *IUIAutomation) AddStructureChangedEventHandler(element *IUIAutomationElement, scope TreeScope, cacheRequest *IUIAutomationCacheRequest, handler *IUIAutomationStructureChangedEventHandler) error

func (*IUIAutomation) CompareElements

func (auto *IUIAutomation) CompareElements(el1, el2 *IUIAutomation) (areSame bool, err error)

func (*IUIAutomation) CreateAndCondition

func (auto *IUIAutomation) CreateAndCondition(condition1, condition2 *IUIAutomationCondition) (newCondition *IUIAutomationCondition, err error)

func (*IUIAutomation) CreateCacheRequest

func (auto *IUIAutomation) CreateCacheRequest() (cacheRequest *IUIAutomationCacheRequest, err error)

CreateCacheRequest

@Description: Creates a cache request.
@receiver auto
@return cacheRequest
@return err

func (*IUIAutomation) CreatePropertyCondition

func (auto *IUIAutomation) CreatePropertyCondition(propertyId PROPERTYID, value ole.VARIANT) (newCondition *IUIAutomationCondition, err error)

func (*IUIAutomation) CreateTreeWalker

func (auto *IUIAutomation) CreateTreeWalker(condition *IUIAutomationCondition) (walker *IUIAutomationTreeWalker, err error)

func (*IUIAutomation) CreateTrueCondition

func (auto *IUIAutomation) CreateTrueCondition() (condition *IUIAutomationCondition, err error)

func (*IUIAutomation) ElementFromHandle

func (auto *IUIAutomation) ElementFromHandle(hwnd syscall.Handle) (el *IUIAutomationElement, err error)

ElementFromHandle

@Description: Retrieves a UI Automation element for the specified window.
@receiver auto
@param hwnd
@return el
@return err

func (*IUIAutomation) ElementFromPoint

func (auto *IUIAutomation) ElementFromPoint(point *ole.Point) (el *IUIAutomationElement, err error)

name:Retrieves the UI Automation element at the specified point on the desktop.

@description:

@param:

@return:

func (*IUIAutomation) GetFocusedElement

func (auto *IUIAutomation) GetFocusedElement() (el *IUIAutomationElement, err error)

GetFocusedElement

@Description: Retrieves the UI Automation element that has the input focus.
@receiver auto
@return el
@return err

func (*IUIAutomation) GetPatternProgrammaticName

func (auto *IUIAutomation) GetPatternProgrammaticName(patternid PATTERNID) (name string, err error)

func (*IUIAutomation) GetPropertyProgrammaticName

func (auto *IUIAutomation) GetPropertyProgrammaticName(propertyid PROPERTYID) (name string, err error)

func (*IUIAutomation) GetProxyFactoryMapping

func (auto *IUIAutomation) GetProxyFactoryMapping() (factoryMapping *IUIAutomationProxyFactoryMapping, err error)

func (*IUIAutomation) GetRootElement

func (auto *IUIAutomation) GetRootElement() (root *IUIAutomationElement, err error)

func (*IUIAutomation) RemoveAllEventHandlers

func (auto *IUIAutomation) RemoveAllEventHandlers() error

func (*IUIAutomation) RemoveStructureChangedEventHandler

func (auto *IUIAutomation) RemoveStructureChangedEventHandler(element *IUIAutomationElement, handler *IUIAutomationStructureChangedEventHandler) error

func (*IUIAutomation) VTable

func (auto *IUIAutomation) VTable() *IUIAutomationVtbl

type IUIAutomation2

type IUIAutomation2 struct {
	IUIAutomation
}

IUIAutomation2 @Description: 必须在win8以上的系统才能使用此结构体

func NewUIAutomation2

func NewUIAutomation2() (*IUIAutomation2, error)

NewUIAutomation2

@Description: UIAutomation2构造函数
@return *IUIAutomation2
@return error

func (*IUIAutomation2) GetAutoSetFocus

func (auto2 *IUIAutomation2) GetAutoSetFocus() (b w32.BOOL, err error)

GetAutoSetFocus

@Description: Specifies whether calls to UI Automation control pattern methods automatically set focus to the target element.
@receiver auto2
@return b
@return err

func (*IUIAutomation2) GetConnectionTimeout

func (auto2 *IUIAutomation2) GetConnectionTimeout() (t w32.DWORD, err error)

func (*IUIAutomation2) GetTransactionTimeout

func (auto2 *IUIAutomation2) GetTransactionTimeout() (t w32.DWORD, err error)

GetTransactionTimeout

@Description: The default transaction timeout value is 20 seconds
@receiver auto2
@return t
@return err

func (*IUIAutomation2) PutAutoSetFocus

func (auto2 *IUIAutomation2) PutAutoSetFocus(b w32.BOOL) (err error)

PutAutoSetFocus

@Description: Specifies whether calls to UI Automation control pattern methods automatically set focus to the target element.
@receiver auto
@param b
@return err

func (*IUIAutomation2) PutConnectionTimeout

func (auto2 *IUIAutomation2) PutConnectionTimeout(t w32.DWORD) (err error)

PutConnectionTimeout

@Description:
@receiver auto2
@param t,milliseconds
@return err

func (*IUIAutomation2) PutTransactionTimeout

func (auto2 *IUIAutomation2) PutTransactionTimeout(t w32.DWORD) (err error)

func (*IUIAutomation2) VTable

func (auto2 *IUIAutomation2) VTable() *IUIAutomation2Vtbl

type IUIAutomation2Vtbl

type IUIAutomation2Vtbl struct {
	IUIAutomationVtbl
	Get_AutoSetFocus       uintptr
	Get_ConnectionTimeout  uintptr
	Get_TransactionTimeout uintptr
	Put_AutoSetFocus       uintptr
	Put_ConnectionTimeout  uintptr
	Put_TransactionTimeout uintptr
}

type IUIAutomation3

type IUIAutomation3 struct {
	IUIAutomation2
}

func NewUIAutomation3

func NewUIAutomation3() (*IUIAutomation3, error)

func (*IUIAutomation3) VTable

func (auto3 *IUIAutomation3) VTable() *IUIAutomation3Vtbl

type IUIAutomation3Vtbl

type IUIAutomation3Vtbl struct {
	IUIAutomation2Vtbl
	AddTextEditTextChangedEventHandler    uintptr
	RemoveTextEditTextChangedEventHandler uintptr
}

type IUIAutomation4

type IUIAutomation4 struct {
	IUIAutomation3
}

func NewUIAutomation4

func NewUIAutomation4() (*IUIAutomation4, error)

func (*IUIAutomation4) VTable

func (auto4 *IUIAutomation4) VTable() *IUIAutomation4Vtbl

type IUIAutomation4Vtbl

type IUIAutomation4Vtbl struct {
	IUIAutomation3Vtbl
	AddChangesEventHandler    uintptr
	RemoveChangesEventHandler uintptr
}

type IUIAutomation5

type IUIAutomation5 struct {
	IUIAutomation4
}

func NewUIAutomation5

func NewUIAutomation5() (*IUIAutomation5, error)

func (*IUIAutomation5) VTable

func (auto5 *IUIAutomation5) VTable() *IUIAutomation5Vtbl

type IUIAutomation5Vtbl

type IUIAutomation5Vtbl struct {
	IUIAutomation4Vtbl
	AddNotificationEventHandler    uintptr
	RemoveNotificationEventHandler uintptr
}

type IUIAutomation6

type IUIAutomation6 struct {
	IUIAutomation5
}

func NewUIAutomation6

func NewUIAutomation6() (*IUIAutomation6, error)

func (*IUIAutomation6) VTable

func (auto6 *IUIAutomation6) VTable() *IUIAutomation6Vtbl

type IUIAutomation6Vtbl

type IUIAutomation6Vtbl struct {
	IUIAutomation5Vtbl
	AddActiveTextPositionChangedEventHandler    uintptr
	AddEventHandlerGroup                        uintptr
	CreateEventHandlerGroup                     uintptr
	Get_CoalesceEvents                          uintptr
	Get_ConnectionRecoveryBehavior              uintptr
	Put_CoalesceEvents                          uintptr
	Put_ConnectionRecoveryBehavior              uintptr
	RemoveActiveTextPositionChangedEventHandler uintptr
	RemoveEventHandlerGroup                     uintptr
}

type IUIAutomationAndCondition

type IUIAutomationAndCondition struct {
	ole.IUnknown
}

func (*IUIAutomationAndCondition) VTable

type IUIAutomationAndConditionVtbl

type IUIAutomationAndConditionVtbl struct {
	ole.IUnknownVtbl
	Get_ChildCount           uintptr
	GetChildren              uintptr
	GetChildrenAsNativeArray uintptr
}

type IUIAutomationBoolCondition

type IUIAutomationBoolCondition struct {
	ole.IUnknown
}

func (*IUIAutomationBoolCondition) VTable

type IUIAutomationBoolConditionVtbl

type IUIAutomationBoolConditionVtbl struct {
	ole.IUnknownVtbl
	Get_BooleanValue uintptr
}

type IUIAutomationCacheRequest

type IUIAutomationCacheRequest struct {
	ole.IUnknown
}

func (*IUIAutomationCacheRequest) AddPattern

func (cacheRequet *IUIAutomationCacheRequest) AddPattern(patternId PATTERNID) (err error)

AddPattern

@Description: Adds a control pattern to the cache request.
@receiver cacheRequet
@param patternId
@return err

func (*IUIAutomationCacheRequest) AddProperty

func (cacheRequet *IUIAutomationCacheRequest) AddProperty(propertyId PROPERTYID) (err error)

AddProperty

@Description: Adds a property to the cache request.
@receiver cacheRequet
@param propertyId
@return err

func (*IUIAutomationCacheRequest) GetTreeScope

func (cacheRequet *IUIAutomationCacheRequest) GetTreeScope() (scope TreeScope, err error)

GetTreeScope

@Description: Specifies the scope of caching.
@receiver cacheRequet
@return scope
@return err

func (*IUIAutomationCacheRequest) PutTreeScope

func (cacheRequet *IUIAutomationCacheRequest) PutTreeScope(scope TreeScope) (err error)

PutTreeScope

@Description: Specifies the scope of caching.
@receiver cacheRequet
@param scope
@return err

func (*IUIAutomationCacheRequest) VTable

type IUIAutomationCacheRequestVtbl

type IUIAutomationCacheRequestVtbl struct {
	ole.IUnknownVtbl
	AddPattern                uintptr
	AddProperty               uintptr
	Clone                     uintptr
	Get_AutomationElementMode uintptr
	Get_TreeFilter            uintptr
	Get_TreeScope             uintptr
	Put_AutomationElementMode uintptr
	Put_TreeFilter            uintptr
	Put_TreeScope             uintptr
}

type IUIAutomationCondition

type IUIAutomationCondition struct {
	ole.IUnknown
}

func (*IUIAutomationCondition) VTable

type IUIAutomationConditionVtbl

type IUIAutomationConditionVtbl struct {
	ole.IUnknownVtbl
}

type IUIAutomationElement

type IUIAutomationElement struct {
	ole.IUnknown
}

func WaitFindFirst

func WaitFindFirst(auto *IUIAutomation, elem *IUIAutomationElement, scope TreeScope, condition *IUIAutomationCondition) (found *IUIAutomationElement, err error)

func (*IUIAutomationElement) FindFirst

func (elem *IUIAutomationElement) FindFirst(scope TreeScope, condition *IUIAutomationCondition) (found *IUIAutomationElement, err error)

func (*IUIAutomationElement) GetCurrentPattern

func (elem *IUIAutomationElement) GetCurrentPattern(patternId PATTERNID) (*ole.IUnknown, error)

func (*IUIAutomationElement) GetRuntimeId

func (elem *IUIAutomationElement) GetRuntimeId() (runtimeId []interface{}, err error)

func (*IUIAutomationElement) Get_CurrentAutomationId

func (elem *IUIAutomationElement) Get_CurrentAutomationId() (string, error)

func (*IUIAutomationElement) Get_CurrentBoundingRectangle

func (elem *IUIAutomationElement) Get_CurrentBoundingRectangle() (w32.RECT, error)

func (*IUIAutomationElement) Get_CurrentCurrentClassName

func (elem *IUIAutomationElement) Get_CurrentCurrentClassName() (string, error)

func (*IUIAutomationElement) Get_CurrentName

func (elem *IUIAutomationElement) Get_CurrentName() (string, error)

func (*IUIAutomationElement) Get_CurrentNativeWindowHandle

func (elem *IUIAutomationElement) Get_CurrentNativeWindowHandle() (syscall.Handle, error)

func (*IUIAutomationElement) Get_CurrentPropertyValue

func (elem *IUIAutomationElement) Get_CurrentPropertyValue(propertyId PROPERTYID) (ole.VARIANT, error)

func (*IUIAutomationElement) SetFocus

func (elem *IUIAutomationElement) SetFocus() (err error)

func (*IUIAutomationElement) VTable

type IUIAutomationElement2

type IUIAutomationElement2 struct {
	IUIAutomationElement
}

func (*IUIAutomationElement2) GetCachedFlowsFrom

func (elem2 *IUIAutomationElement2) GetCachedFlowsFrom() (elemArray *IUIAutomationElementArray, err error)

func (*IUIAutomationElement2) GetCachedLiveSetting

func (elem2 *IUIAutomationElement2) GetCachedLiveSetting()

func (*IUIAutomationElement2) GetCachedOptimizeForVisualContent

func (elem2 *IUIAutomationElement2) GetCachedOptimizeForVisualContent() (b w32.BOOL, err error)

func (*IUIAutomationElement2) VTable

type IUIAutomationElement2Vtbl

type IUIAutomationElement2Vtbl struct {
	IUIAutomationElementVtbl
	Get_CachedFlowsFrom                 uintptr
	Get_CachedLiveSetting               uintptr
	Get_CachedOptimizeForVisualContent  uintptr
	Get_CurrentFlowsFrom                uintptr
	Get_CurrentLiveSetting              uintptr
	Get_CurrentOptimizeForVisualContent uintptr
}

type IUIAutomationElement3

type IUIAutomationElement3 struct {
	IUIAutomationElement2
}

func (*IUIAutomationElement3) VTable

type IUIAutomationElement3Vtbl

type IUIAutomationElement3Vtbl struct {
	IUIAutomationElement2Vtbl
	Get_CachedIsPeripheral  uintptr
	Get_CurrentIsPeripheral uintptr
	ShowContextMenu         uintptr
}

type IUIAutomationElement4

type IUIAutomationElement4 struct {
	IUIAutomationElement3
}

func (*IUIAutomationElement4) VTable

type IUIAutomationElement4Vtbl

type IUIAutomationElement4Vtbl struct {
	IUIAutomationElement3Vtbl
	Get_CachedAnnotationObjects  uintptr
	Get_CachedAnnotationTypes    uintptr
	Get_CachedLevel              uintptr
	Get_CachedPositionInSet      uintptr
	Get_CachedSizeOfSet          uintptr
	Get_CurrentAnnotationObjects uintptr
	Get_CurrentAnnotationTypes   uintptr
	Get_CurrentLevel             uintptr
	Get_CurrentPositionInSet     uintptr
	Get_CurrentSizeOfSet         uintptr
}

type IUIAutomationElement5

type IUIAutomationElement5 struct {
	IUIAutomationElement4
}

type IUIAutomationElement5Vtbl

type IUIAutomationElement5Vtbl struct {
	IUIAutomationElement4Vtbl
}

type IUIAutomationElement6

type IUIAutomationElement6 struct {
	IUIAutomationElement5
}

type IUIAutomationElement6Vtbl

type IUIAutomationElement6Vtbl struct {
	IUIAutomationElement5Vtbl
}

type IUIAutomationElement7

type IUIAutomationElement7 struct {
	IUIAutomationElement6
}

type IUIAutomationElement7Vtbl

type IUIAutomationElement7Vtbl struct {
	IUIAutomationElement6Vtbl
}

type IUIAutomationElement8

type IUIAutomationElement8 struct {
	IUIAutomationElement7
}

func (*IUIAutomationElement8) GetCachedHeadingLevel

func (ele8 *IUIAutomationElement8) GetCachedHeadingLevel()

func (*IUIAutomationElement8) VTable

type IUIAutomationElement8Vtbl

type IUIAutomationElement8Vtbl struct {
	IUIAutomationElement7Vtbl
	Get_CachedHeadingLevel  uintptr
	Get_CurrentHeadingLevel uintptr
}

type IUIAutomationElement9

type IUIAutomationElement9 struct {
	IUIAutomationElement8
}

func (*IUIAutomationElement9) GetCachedIsDialog

func (ele9 *IUIAutomationElement9) GetCachedIsDialog() (b w32.BOOL, err error)

func (*IUIAutomationElement9) GetCurrentIsDialog

func (ele9 *IUIAutomationElement9) GetCurrentIsDialog() (b w32.BOOL, err error)

func (*IUIAutomationElement9) VTable

type IUIAutomationElement9Vtbl

type IUIAutomationElement9Vtbl struct {
	IUIAutomationElement8Vtbl
	Get_CachedIsDialog  uintptr
	Get_CurrentIsDialog uintptr
}

type IUIAutomationElementArray

type IUIAutomationElementArray struct {
	ole.IUnknown
}

type IUIAutomationElementArrayVtbl

type IUIAutomationElementArrayVtbl struct {
	ole.IUnknownVtbl
	Get_Length uintptr
	GetElement uintptr
}

type IUIAutomationElementVtbl

type IUIAutomationElementVtbl struct {
	ole.IUnknownVtbl
	SetFocus                        uintptr
	GetRuntimeId                    uintptr
	FindFirst                       uintptr
	FindAll                         uintptr
	FindFirstBuildCache             uintptr
	FindAllBuildCache               uintptr
	BuildUpdatedCache               uintptr
	GetCurrentPropertyValue         uintptr
	GetCurrentPropertyValueEx       uintptr
	GetCachedPropertyValue          uintptr
	GetCachedPropertyValueEx        uintptr
	GetCurrentPatternAs             uintptr
	GetCachedPatternAs              uintptr
	GetCurrentPattern               uintptr
	GetCachedPattern                uintptr
	GetCachedParent                 uintptr
	GetCachedChildren               uintptr
	Get_CurrentProcessId            uintptr
	Get_CurrentControlType          uintptr
	Get_CurrentLocalizedControlType uintptr
	Get_CurrentName                 uintptr
	Get_CurrentAcceleratorKey       uintptr
	Get_CurrentAccessKey            uintptr
	Get_CurrentHasKeyboardFocus     uintptr
	Get_CurrentIsKeyboardFocusable  uintptr
	Get_CurrentIsEnabled            uintptr
	Get_CurrentAutomationId         uintptr
	Get_CurrentClassName            uintptr
	Get_CurrentHelpText             uintptr
	Get_CurrentCulture              uintptr
	Get_CurrentIsControlElement     uintptr
	Get_CurrentIsContentElement     uintptr
	Get_CurrentIsPassword           uintptr
	Get_CurrentNativeWindowHandle   uintptr
	Get_CurrentItemType             uintptr
	Get_CurrentIsOffscreen          uintptr
	Get_CurrentOrientation          uintptr
	Get_CurrentFrameworkId          uintptr
	Get_CurrentIsRequiredForForm    uintptr
	Get_CurrentItemStatus           uintptr
	Get_CurrentBoundingRectangle    uintptr
	Get_CurrentLabeledBy            uintptr
	Get_CurrentAriaRole             uintptr
	Get_CurrentAriaProperties       uintptr
	Get_CurrentIsDataValidForForm   uintptr
	Get_CurrentControllerFor        uintptr
	Get_CurrentDescribedBy          uintptr
	Get_CurrentFlowsTo              uintptr
	Get_CurrentProviderDescription  uintptr
	Get_CachedProcessId             uintptr
	Get_CachedControlType           uintptr
	Get_CachedLocalizedControlType  uintptr
	Get_CachedName                  uintptr
	Get_CachedAcceleratorKey        uintptr
	Get_CachedAccessKey             uintptr
	Get_CachedHasKeyboardFocus      uintptr
	Get_CachedIsKeyboardFocusable   uintptr
	Get_CachedIsEnabled             uintptr
	Get_CachedAutomationId          uintptr
	Get_CachedClassName             uintptr
	Get_CachedHelpText              uintptr
	Get_CachedCulture               uintptr
	Get_CachedIsControlElement      uintptr
	Get_CachedIsContentElement      uintptr
	Get_CachedIsPassword            uintptr
	Get_CachedNativeWindowHandle    uintptr
	Get_CachedItemType              uintptr
	Get_CachedIsOffscreen           uintptr
	Get_CachedOrientation           uintptr
	Get_CachedFrameworkId           uintptr
	Get_CachedIsRequiredForForm     uintptr
	Get_CachedItemStatus            uintptr
	Get_CachedBoundingRectangle     uintptr
	Get_CachedLabeledBy             uintptr
	Get_CachedAriaRole              uintptr
	Get_CachedAriaProperties        uintptr
	Get_CachedIsDataValidForForm    uintptr
	Get_CachedControllerFor         uintptr
	Get_CachedDescribedBy           uintptr
	Get_CachedFlowsTo               uintptr
	Get_CachedProviderDescription   uintptr
	GetClickablePoint               uintptr
}

type IUIAutomationExpandCollapsePattern

type IUIAutomationExpandCollapsePattern struct {
	ole.IUnknown
}

func (*IUIAutomationExpandCollapsePattern) Collapse

func (pat *IUIAutomationExpandCollapsePattern) Collapse() error

func (*IUIAutomationExpandCollapsePattern) Expand

func (*IUIAutomationExpandCollapsePattern) VTable

type IUIAutomationExpandCollapsePatternVtbl

type IUIAutomationExpandCollapsePatternVtbl struct {
	ole.IUnknownVtbl
	Expand                         uintptr
	Collapse                       uintptr
	Get_CurrentExpandCollapseState uintptr
	Get_CachedExpandCollapseState  uintptr
}

type IUIAutomationFocusChangedEventHandler

type IUIAutomationFocusChangedEventHandler struct {
	ole.IUnknown
	// contains filtered or unexported fields
}

func NewIUIAutomationPropertyChangedEventHandler

func NewIUIAutomationPropertyChangedEventHandler(handlerFunc func(this *IUIAutomationPropertyChangedEventHandler,
	propertyId PROPERTYID, newValue ole.VARIANT) syscall.Handle) IUIAutomationFocusChangedEventHandler

NewIUIAutomationPropertyChangedEventHandler

@Description: 初始化propertyChanged句柄
@param handlerFunc 触发后的回调函数
@return IUIAutomationFocusChangedEventHandler

func (*IUIAutomationFocusChangedEventHandler) VTable

type IUIAutomationFocusChangedEventHandlerVtbl

type IUIAutomationFocusChangedEventHandlerVtbl struct {
	ole.IUnknownVtbl
	HandleFocusChangedEvent uintptr
}

type IUIAutomationInvokePattern

type IUIAutomationInvokePattern struct {
	ole.IUnknown
}

func (*IUIAutomationInvokePattern) Invoke

func (pat *IUIAutomationInvokePattern) Invoke() error

func (*IUIAutomationInvokePattern) VTable

type IUIAutomationInvokePatternVtbl

type IUIAutomationInvokePatternVtbl struct {
	ole.IUnknownVtbl
	Invoke uintptr
}

type IUIAutomationNotCondition

type IUIAutomationNotCondition struct {
	ole.IUnknown
}

func (*IUIAutomationNotCondition) VTable

type IUIAutomationNotConditionVtbl

type IUIAutomationNotConditionVtbl struct {
	ole.IUnknownVtbl
	GetChild uintptr
}

type IUIAutomationPropertyChangedEventHandler

type IUIAutomationPropertyChangedEventHandler struct {
	ole.IUnknown
	// contains filtered or unexported fields
}

func (*IUIAutomationPropertyChangedEventHandler) VTable

type IUIAutomationPropertyChangedEventHandlerVtbl

type IUIAutomationPropertyChangedEventHandlerVtbl struct {
	ole.IUnknownVtbl
	HandlePropertyChangedEvent uintptr
}

type IUIAutomationPropertyCondition

type IUIAutomationPropertyCondition struct {
	ole.IUnknown
}

func (*IUIAutomationPropertyCondition) VTable

type IUIAutomationPropertyConditionVtbl

type IUIAutomationPropertyConditionVtbl struct {
	ole.IUnknownVtbl
	Get_PropertyConditionFlags uintptr
	Get_PropertyId             uintptr
	Get_PropertyValue          uintptr
}

type IUIAutomationProxyFactoryMapping

type IUIAutomationProxyFactoryMapping struct {
	ole.IUnknown
}

func (*IUIAutomationProxyFactoryMapping) VTable

type IUIAutomationProxyFactoryMappingVtbl

type IUIAutomationProxyFactoryMappingVtbl struct {
	ole.IUnknownVtbl
	ClearTable          uintptr
	Get_Count           uintptr
	GetEntry            uintptr
	GetTable            uintptr
	InsertEntries       uintptr
	InsertEntry         uintptr
	RemoveEntry         uintptr
	RestoreDefaultTable uintptr
	SetTable            uintptr
}

type IUIAutomationSelectionItemPattern

type IUIAutomationSelectionItemPattern struct {
	ole.IUnknown
}

func (*IUIAutomationSelectionItemPattern) Select

func (*IUIAutomationSelectionItemPattern) VTable

type IUIAutomationSelectionItemPatternVtbl

type IUIAutomationSelectionItemPatternVtbl struct {
	ole.IUnknownVtbl
	Select                        uintptr
	AddToSelection                uintptr
	RemoveFromSelection           uintptr
	Get_CurrentIsSelected         uintptr
	Get_CurrentSelectionContainer uintptr
	Get_CachedIsSelected          uintptr
	Get_CachedSelectionContainer  uintptr
}

type IUIAutomationStructureChangedEventHandler

type IUIAutomationStructureChangedEventHandler struct {
	ole.IUnknown
	// contains filtered or unexported fields
}

func NewStructureChangedEventHandler

func NewStructureChangedEventHandler(handlerFunc func(this *IUIAutomationStructureChangedEventHandler, sender *IUIAutomationElement, changeType StructureChangeType, runtimeId *ole.SAFEARRAY) syscall.Handle) IUIAutomationStructureChangedEventHandler

func (*IUIAutomationStructureChangedEventHandler) VTable

type IUIAutomationStructureChangedEventHandlerVtbl

type IUIAutomationStructureChangedEventHandlerVtbl struct {
	ole.IUnknownVtbl
	HandleStructureChangedEvent uintptr
}

type IUIAutomationTextEditTextChangedEventHandler

type IUIAutomationTextEditTextChangedEventHandler struct {
	ole.IUnknown
	// contains filtered or unexported fields
}

type IUIAutomationTextEditTextChangedEventHandlerVtbl

type IUIAutomationTextEditTextChangedEventHandlerVtbl struct {
	ole.IUnknownVtbl
	HandleTextEditTextChangedEvent uintptr
}

type IUIAutomationTreeWalker

type IUIAutomationTreeWalker struct {
	ole.IUnknown
}

func NewTreeWalker

func NewTreeWalker(auto *IUIAutomation) (*IUIAutomationTreeWalker, error)

func (*IUIAutomationTreeWalker) GetFirstChildElement

func (w *IUIAutomationTreeWalker) GetFirstChildElement(element *IUIAutomationElement) (first *IUIAutomationElement, err error)

func (*IUIAutomationTreeWalker) GetNextSiblingElement

func (w *IUIAutomationTreeWalker) GetNextSiblingElement(element *IUIAutomationElement) (next *IUIAutomationElement, err error)

func (*IUIAutomationTreeWalker) GetParentElement

func (w *IUIAutomationTreeWalker) GetParentElement(element *IUIAutomationElement) (first *IUIAutomationElement, err error)

func (*IUIAutomationTreeWalker) VTable

type IUIAutomationTreeWalkerVtbl

type IUIAutomationTreeWalkerVtbl struct {
	ole.IUnknownVtbl
	GetParentElement                    uintptr
	GetFirstChildElement                uintptr
	GetLastChildElement                 uintptr
	GetNextSiblingElement               uintptr
	GetPreviousSiblingElement           uintptr
	NormalizeElement                    uintptr
	GetParentElementBuildCache          uintptr
	GetFirstChildElementBuildCache      uintptr
	GetLastChildElementBuildCache       uintptr
	GetNextSiblingElementBuildCache     uintptr
	GetPreviousSiblingElementBuildCache uintptr
	NormalizeElementBuildCache          uintptr
	Get_Condition                       uintptr
}

type IUIAutomationVtbl

type IUIAutomationVtbl struct {
	ole.IUnknownVtbl
	CompareElements                           uintptr
	CompareRuntimeIds                         uintptr
	GetRootElement                            uintptr
	ElementFromHandle                         uintptr
	ElementFromPoint                          uintptr
	GetFocusedElement                         uintptr
	GetRootElementBuildCache                  uintptr
	ElementFromHandleBuildCache               uintptr
	ElementFromPointBuildCache                uintptr
	GetFocusedElementBuildCache               uintptr
	CreateTreeWalker                          uintptr
	Get_ControlViewWalker                     uintptr
	Get_ContentViewWalker                     uintptr
	Get_RawViewWalker                         uintptr
	Get_RawViewCondition                      uintptr
	Get_ControlViewCondition                  uintptr
	Get_ContentViewCondition                  uintptr
	CreateCacheRequest                        uintptr
	CreateTrueCondition                       uintptr
	CreateFalseCondition                      uintptr
	CreatePropertyCondition                   uintptr
	CreatePropertyConditionEx                 uintptr
	CreateAndCondition                        uintptr
	CreateAndConditionFromArray               uintptr
	CreateAndConditionFromNativeArray         uintptr
	CreateOrCondition                         uintptr
	CreateOrConditionFromArray                uintptr
	CreateOrConditionFromNativeArray          uintptr
	CreateNotCondition                        uintptr
	AddAutomationEventHandler                 uintptr
	RemoveAutomationEventHandler              uintptr
	AddPropertyChangedEventHandlerNativeArray uintptr
	AddPropertyChangedEventHandler            uintptr
	RemovePropertyChangedEventHandler         uintptr
	AddStructureChangedEventHandler           uintptr
	RemoveStructureChangedEventHandler        uintptr
	AddFocusChangedEventHandler               uintptr
	RemoveFocusChangedEventHandler            uintptr
	RemoveAllEventHandlers                    uintptr
	IntNativeArrayToSafeArray                 uintptr
	IntSafeArrayToNativeArray                 uintptr
	RectToVariant                             uintptr
	VariantToRect                             uintptr
	SafeArrayToRectNativeArray                uintptr
	CreateProxyFactoryEntry                   uintptr
	Get_ProxyFactoryMapping                   uintptr
	GetPropertyProgrammaticName               uintptr
	GetPatternProgrammaticName                uintptr
	PollForPotentialSupportedPatterns         uintptr
	PollForPotentialSupportedProperties       uintptr
	CheckNotSupported                         uintptr
	Get_ReservedNotSupportedValue             uintptr
	Get_ReservedMixedAttributeValue           uintptr
	ElementFromIAccessible                    uintptr
	ElementFromIAccessibleBuildCache          uintptr
}

type PATTERNID

type PATTERNID uintptr

type PROPERTYID

type PROPERTYID uintptr

type StructureChangeType

type StructureChangeType uintptr

func (StructureChangeType) ToString

func (t StructureChangeType) ToString() string

type TextEditChangeType

type TextEditChangeType uintptr

func (TextEditChangeType) ToString

func (t TextEditChangeType) ToString() string

type TreeScope

type TreeScope uintptr

Jump to

Keyboard shortcuts

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