Documentation
¶
Overview ¶
+build amd64
+build amd64
Index ¶
- Constants
- Variables
- func Collapse(element *IUIAutomationElement) error
- func Expand(element *IUIAutomationElement) error
- func Invoke(element *IUIAutomationElement) error
- func NewVariantInt(i int64) ole.VARIANT
- func NewVariantString(s string) ole.VARIANT
- func Select(element *IUIAutomationElement) error
- func VariantToUintptrArray(v ole.VARIANT) []uintptr
- type EVENTID
- type IUIAutomation
- func (auto *IUIAutomation) AddAutomationEventHandler(eventId EVENTID, element *IUIAutomationElement, scope TreeScope, ...) error
- func (auto *IUIAutomation) AddStructureChangedEventHandler(element *IUIAutomationElement, scope TreeScope, ...) error
- func (auto *IUIAutomation) CompareElements(el1, el2 *IUIAutomation) (areSame bool, err error)
- func (auto *IUIAutomation) CreateAndCondition(condition1, condition2 *IUIAutomationCondition) (newCondition *IUIAutomationCondition, err error)
- func (auto *IUIAutomation) CreatePropertyCondition(propertyId PROPERTYID, value ole.VARIANT) (newCondition *IUIAutomationCondition, err error)
- func (auto *IUIAutomation) CreateTreeWalker(condition *IUIAutomationCondition) (walker *IUIAutomationTreeWalker, err error)
- func (auto *IUIAutomation) CreateTrueCondition() (newCondition *IUIAutomationCondition, err error)
- func (auto *IUIAutomation) GetRootElement() (root *IUIAutomationElement, err error)
- func (auto *IUIAutomation) RemoveAllEventHandlers() error
- func (auto *IUIAutomation) RemoveAutomationEventHandler(eventId EVENTID, element *IUIAutomationElement, ...) error
- func (auto *IUIAutomation) RemoveStructureChangedEventHandler(element *IUIAutomationElement, ...) error
- func (v *IUIAutomation) VTable() *IUIAutomationVtbl
- type IUIAutomationCacheRequest
- type IUIAutomationCacheRequestVtbl
- type IUIAutomationCondition
- type IUIAutomationConditionVtbl
- type IUIAutomationElement
- func (elem *IUIAutomationElement) FindAll(scope TreeScope, condition *IUIAutomationCondition) (found *IUIAutomationElementArray, err error)
- func (elem *IUIAutomationElement) FindFirst(scope TreeScope, condition *IUIAutomationCondition) (found *IUIAutomationElement, err error)
- func (elem *IUIAutomationElement) GetCurrentPattern(patternId PATTERNID) (*ole.IUnknown, error)
- func (elem *IUIAutomationElement) Get_CurrentAutomationId() (string, error)
- func (elem *IUIAutomationElement) Get_CurrentBoundingRectangle() (RECT, error)
- func (elem *IUIAutomationElement) Get_CurrentCurrentClassName() (string, error)
- func (elem *IUIAutomationElement) Get_CurrentName() (string, error)
- func (elem *IUIAutomationElement) Get_CurrentNativeWindowHandle() (syscall.Handle, error)
- func (elem *IUIAutomationElement) Get_CurrentPropertyValue(propertyId PROPERTYID) (ole.VARIANT, error)
- func (elem *IUIAutomationElement) SetFocus() (err error)
- func (elem *IUIAutomationElement) VTable() *IUIAutomationElementVtbl
- type IUIAutomationElementArray
- type IUIAutomationElementArrayVtbl
- type IUIAutomationElementVtbl
- type IUIAutomationEventHandler
- type IUIAutomationEventHandlerVtbl
- type IUIAutomationExpandCollapsePattern
- type IUIAutomationExpandCollapsePatternVtbl
- type IUIAutomationInvokePattern
- type IUIAutomationInvokePatternVtbl
- type IUIAutomationSelectionItemPattern
- type IUIAutomationSelectionItemPatternVtbl
- type IUIAutomationStructureChangedEventHandler
- type IUIAutomationStructureChangedEventHandlerVtbl
- type IUIAutomationTreeWalker
- func (w *IUIAutomationTreeWalker) GetFirstChildElement(element *IUIAutomationElement) (first *IUIAutomationElement, err error)
- func (w *IUIAutomationTreeWalker) GetNextSiblingElement(element *IUIAutomationElement) (next *IUIAutomationElement, err error)
- func (w *IUIAutomationTreeWalker) GetParentElement(element *IUIAutomationElement) (first *IUIAutomationElement, err error)
- func (w *IUIAutomationTreeWalker) VTable() *IUIAutomationTreeWalkerVtbl
- type IUIAutomationTreeWalkerVtbl
- type IUIAutomationValuePattern
- type IUIAutomationValuePatternVtbl
- type IUIAutomationVtbl
- type PATTERNID
- type PROPERTYID
- type RECT
- type StructureChangeType
- type TreeScope
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 ( UIA_ActiveTextPositionChangedEventId = 20032 // Identifies the event that is raised when the active text position changes, indicated by a navigation event within or between read-only text elements (such as web browsers, PDF documents, or EPUB documents) using bookmarks (fragment identifiers that refer to a location within a resource). UIA_AsyncContentLoadedEventId = 20006 // Identifies the event that is raised when asynchronous content is being loaded. This event is used mainly by providers to indicate that asynchronous content-loading events have occurred. UIA_AutomationFocusChangedEventId = 20005 // Identifies the event that is raised when the focus has changed from one element to another. UIA_AutomationPropertyChangedEventId = 20004 // Identifies the event that is raised when the value of a property has changed. UIA_ChangesEventId = 20034 // Identifies the event that is raised when a provider calls the UiaRaiseChangesEvent function. UIA_Drag_DragCancelEventId = 20027 // Identifies the event that is raised when the user ends a drag operation before dropping an element on a drop target. This event is raised by the element being dragged. Supported starting with Windows 8. UIA_Drag_DragCompleteEventId = 20028 // Identifies the event that is raised when the user drops an element on a drop target. This event is raised by the element being dragged. Supported starting with Windows 8. UIA_Drag_DragStartEventId = 20026 // Identifies the event that is raised when the user starts to drag an element. This event is raised by the element being dragged. Supported starting with Windows 8. UIA_DropTarget_DragEnterEventId = 20029 // Identifies the event that is raised when the user drags an element into a drop target's boundary. This event is raised by the drop target element. Supported starting with Windows 8. UIA_DropTarget_DragLeaveEventId = 20030 // Identifies the event that is raised when the user drags an element out of a drop target's boundary. This event is raised by the drop target element. Supported starting with Windows 8. UIA_DropTarget_DroppedEventId = 20031 // Identifies the event that is raised when the user drops an element on a drop target. This event is raised by the drop target element. Supported starting with Windows 8. UIA_HostedFragmentRootsInvalidatedEventId = 20025 // Identifies the event that is raised when a change is made to the root node of a UI Automation fragment that is hosted in another element. Supported starting with Windows 8. UIA_InputDiscardedEventId = 20022 // Identifies the event that is raised when the specified input was discarded or otherwise failed to reach any element. UIA_InputReachedOtherElementEventId = 20021 // Identifies the event that is raised when the specified input reached an element other than the element for which the StartListening method was called. UIA_InputReachedTargetEventId = 20020 // Identifies the event that is raised when the specified mouse or keyboard input reaches the element for which the StartListening method was called. UIA_Invoke_InvokedEventId = 20009 // Identifies the event that is raised when a control is invoked or activated. UIA_LayoutInvalidatedEventId = 20008 // Identifies the event that is raised when the layout of child items within a control has changed. This event is also used for Auto-suggest accessibility. UIA_LiveRegionChangedEventId = 20024 // Identifies the event that is raised when the content of a live region has changed. Supported starting with Windows 8. UIA_MenuClosedEventId = 20007 // Identifies the event that is raised when a menu is closed. UIA_MenuModeEndEventId = 20019 // Identifies the event that is raised when a menu mode is ended. UIA_MenuModeStartEventId = 20018 // Identifies the event that is raised when a menu mode is started. UIA_MenuOpenedEventId = 20003 // Identifies the event that is raised when a menu is opened. UIA_NotificationEventId = 20035 // Identifies the event that is raised when a provider calls the UiaRaiseNotificationEvent method. UIA_Selection_InvalidatedEventId = 20013 // Identifies the event that is raised when a selection in a container has changed significantly. UIA_SelectionItem_ElementAddedToSelectionEventId = 20010 // Identifies the event raised when an item is added to a collection of selected items. UIA_SelectionItem_ElementRemovedFromSelectionEventId = 20011 // Identifies the event raised when an item is removed from a collection of selected items. UIA_SelectionItem_ElementSelectedEventId = 20012 // Identifies the event that is raised when a call to the Select, AddToSelection, or RemoveFromSelection method results in a single item being selected. UIA_StructureChangedEventId = 20002 // Identifies the event that is raised when the UI Automation tree structure is changed. UIA_SystemAlertEventId = 20023 // Identifies the event that is raised when a provider issues a system alert. Supported starting with Windows 8. UIA_Text_TextChangedEventId = 20015 // Identifies the event that is raised whenever textual content is modified. UIA_Text_TextSelectionChangedEventId = 20014 // Identifies the event that is raised when the text selection is modified. UIA_TextEdit_ConversionTargetChangedEventId = 20033 // Identifies the event that is raised whenever a composition replacement is performed by a control. Supported starting with Windows 8.1. UIA_TextEdit_TextChangedEventId = 20032 // Identifies the event that is raised whenever text auto-correction is performed by a control. Supported starting with Windows 8.1. UIA_ToolTipClosedEventId = 20001 // Identifies the event that is raised when a tooltip is closed. UIA_ToolTipOpenedEventId = 20000 // Identifies the event that is raised when a tooltip is opened. UIA_Window_WindowClosedEventId = 20017 // Identifies the event that is raised when a window is closed. UIA_Window_WindowOpenedEventId = 20016 // Identifies the event that is raised when a window is opened. )
View Source
const ( StructureChangeType_ChildAdded = iota StructureChangeType_ChildRemoved StructureChangeType_ChildrenInvalidated StructureChangeType_ChildrenBulkAdded StructureChangeType_ChildrenBulkRemoved StructureChangeType_ChildrenReordered )
View Source
const ( UIA_AnnotationPatternId = 10023 // Identifies the Annotation control pattern. Supported starting with Windows 8. 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 IID_IUIAutomation = &ole.GUID{0x30cbe57d, 0xd9d0, 0x452a, [8]byte{0xab, 0x13, 0x7a, 0xc5, 0xac, 0x48, 0x25, 0xee}}
View Source
var IID_IUIAutomationCacheRequest = &ole.GUID{0xb32a92b5, 0xbc25, 0x4078, [8]byte{0x9c, 0x08, 0xd7, 0xee, 0x95, 0xc4, 0x8e, 0x03}}
View Source
var IID_IUIAutomationElement = &ole.GUID{0xd22108aa, 0x8ac5, 0x49a5, [8]byte{0x83, 0x7b, 0x37, 0xbb, 0xb3, 0xd7, 0x59, 0x1e}}
View Source
var IID_IUIAutomationEventHandler = &ole.GUID{0x146c3c17, 0xf12e, 0x4e22, [8]byte{0x8c, 0x27, 0xf8, 0x94, 0xb9, 0xb7, 0x9c, 0x69}}
View Source
var IID_IUIAutomationExpandCollapsePattern = &ole.GUID{0x619be086, 0x1f4e, 0x4ee4, [8]byte{0xba, 0xfa, 0x21, 0x01, 0x28, 0x73, 0x87, 0x30}}
View Source
var IID_IUIAutomationInvokePattern = &ole.GUID{0xfb377fbe, 0x8ea6, 0x46d5, [8]byte{0x9c, 0x73, 0x64, 0x99, 0x64, 0x2d, 0x30, 0x59}}
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_IUIAutomationValuePattern = &ole.GUID{0xa94cd8b1, 0x0844, 0x4cd6, [8]byte{0x9d, 0x2d, 0x64, 0x05, 0x37, 0xab, 0x39, 0xe9}}
Functions ¶
func Collapse ¶
func Collapse(element *IUIAutomationElement) error
func Expand ¶
func Expand(element *IUIAutomationElement) error
func Invoke ¶
func Invoke(element *IUIAutomationElement) error
func NewVariantInt ¶
func NewVariantInt(i int64) ole.VARIANT
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 IUIAutomation ¶
func NewUIAutomation ¶
func NewUIAutomation() (*IUIAutomation, error)
func (*IUIAutomation) AddAutomationEventHandler ¶
func (auto *IUIAutomation) AddAutomationEventHandler(eventId EVENTID, element *IUIAutomationElement, scope TreeScope, cacheRequest *IUIAutomationCacheRequest, handler *IUIAutomationEventHandler) 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) 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() (newCondition *IUIAutomationCondition, err error)
func (*IUIAutomation) GetRootElement ¶
func (auto *IUIAutomation) GetRootElement() (root *IUIAutomationElement, err error)
func (*IUIAutomation) RemoveAllEventHandlers ¶
func (auto *IUIAutomation) RemoveAllEventHandlers() error
func (*IUIAutomation) RemoveAutomationEventHandler ¶
func (auto *IUIAutomation) RemoveAutomationEventHandler(eventId EVENTID, element *IUIAutomationElement, handler *IUIAutomationEventHandler) error
func (*IUIAutomation) RemoveStructureChangedEventHandler ¶
func (auto *IUIAutomation) RemoveStructureChangedEventHandler(element *IUIAutomationElement, handler *IUIAutomationStructureChangedEventHandler) error
func (*IUIAutomation) VTable ¶
func (v *IUIAutomation) VTable() *IUIAutomationVtbl
type IUIAutomationCacheRequest ¶
type IUIAutomationCacheRequest struct {
ole.IUnknown
}
func (*IUIAutomationCacheRequest) VTable ¶
func (elem *IUIAutomationCacheRequest) VTable() *IUIAutomationCacheRequestVtbl
type IUIAutomationCacheRequestVtbl ¶
type IUIAutomationCacheRequestVtbl struct {
ole.IUnknownVtbl
}
type IUIAutomationCondition ¶
type IUIAutomationCondition struct {
ole.IUnknown
}
func (*IUIAutomationCondition) VTable ¶
func (v *IUIAutomationCondition) VTable() *IUIAutomationConditionVtbl
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) FindAll ¶
func (elem *IUIAutomationElement) FindAll(scope TreeScope, condition *IUIAutomationCondition) (found *IUIAutomationElementArray, 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) Get_CurrentAutomationId ¶
func (elem *IUIAutomationElement) Get_CurrentAutomationId() (string, error)
func (*IUIAutomationElement) Get_CurrentBoundingRectangle ¶
func (elem *IUIAutomationElement) Get_CurrentBoundingRectangle() (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 ¶
func (elem *IUIAutomationElement) VTable() *IUIAutomationElementVtbl
type IUIAutomationElementArray ¶
func WaitFindAll ¶
func WaitFindAll(auto *IUIAutomation, elem *IUIAutomationElement, scope TreeScope, condition *IUIAutomationCondition) (found *IUIAutomationElementArray, err error)
func (*IUIAutomationElementArray) GetElement ¶
func (v *IUIAutomationElementArray) GetElement(index int32) (element *IUIAutomationElement, err error)
func (*IUIAutomationElementArray) Get_Length ¶
func (v *IUIAutomationElementArray) Get_Length() (length int32, err error)
func (*IUIAutomationElementArray) VTable ¶
func (v *IUIAutomationElementArray) VTable() *IUIAutomationElementArrayVtbl
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 IUIAutomationEventHandler ¶
func NewAutomationEventHandler ¶
func NewAutomationEventHandler(handlerFunc func(this *IUIAutomationEventHandler, sender *IUIAutomationElement, eventId EVENTID) syscall.Handle) IUIAutomationEventHandler
func (*IUIAutomationEventHandler) VTable ¶
func (h *IUIAutomationEventHandler) VTable() *IUIAutomationEventHandlerVtbl
type IUIAutomationEventHandlerVtbl ¶
type IUIAutomationEventHandlerVtbl struct { ole.IUnknownVtbl HandleAutomationEvent uintptr }
type IUIAutomationExpandCollapsePattern ¶
type IUIAutomationExpandCollapsePattern struct {
ole.IUnknown
}
func (*IUIAutomationExpandCollapsePattern) Collapse ¶
func (pat *IUIAutomationExpandCollapsePattern) Collapse() error
func (*IUIAutomationExpandCollapsePattern) Expand ¶
func (pat *IUIAutomationExpandCollapsePattern) Expand() error
func (*IUIAutomationExpandCollapsePattern) VTable ¶
func (pat *IUIAutomationExpandCollapsePattern) VTable() *IUIAutomationExpandCollapsePatternVtbl
type IUIAutomationInvokePattern ¶
type IUIAutomationInvokePattern struct {
ole.IUnknown
}
func (*IUIAutomationInvokePattern) Invoke ¶
func (pat *IUIAutomationInvokePattern) Invoke() error
func (*IUIAutomationInvokePattern) VTable ¶
func (pat *IUIAutomationInvokePattern) VTable() *IUIAutomationInvokePatternVtbl
type IUIAutomationInvokePatternVtbl ¶
type IUIAutomationInvokePatternVtbl struct { ole.IUnknownVtbl Invoke uintptr }
type IUIAutomationSelectionItemPattern ¶
type IUIAutomationSelectionItemPattern struct {
ole.IUnknown
}
func (*IUIAutomationSelectionItemPattern) Select ¶
func (pat *IUIAutomationSelectionItemPattern) Select() error
func (*IUIAutomationSelectionItemPattern) VTable ¶
func (pat *IUIAutomationSelectionItemPattern) VTable() *IUIAutomationSelectionItemPatternVtbl
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
type IUIAutomationStructureChangedEventHandlerVtbl ¶
type IUIAutomationStructureChangedEventHandlerVtbl struct { ole.IUnknownVtbl HandleStructureChangedEvent 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 ¶
func (w *IUIAutomationTreeWalker) VTable() *IUIAutomationTreeWalkerVtbl
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 IUIAutomationValuePattern ¶
type IUIAutomationValuePattern struct {
ole.IUnknown
}
func (*IUIAutomationValuePattern) Get_CurrentValue ¶
func (pat *IUIAutomationValuePattern) Get_CurrentValue() (name string, err error)
func (*IUIAutomationValuePattern) SetValue ¶
func (pat *IUIAutomationValuePattern) SetValue(value string) error
func (*IUIAutomationValuePattern) VTable ¶
func (pat *IUIAutomationValuePattern) VTable() *IUIAutomationValuePatternVtbl
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 PROPERTYID ¶
type PROPERTYID uintptr
type StructureChangeType ¶
type StructureChangeType uintptr
func (StructureChangeType) ToString ¶
func (t StructureChangeType) ToString() string
Source Files
¶
- controltypeids.go
- eventid.go
- expandcollapse.go
- invoke.go
- iuiautomation.go
- iuiautomation_amd64.go
- iuiautomationcacherequest.go
- iuiautomationcondition.go
- iuiautomationelement.go
- iuiautomationelementarray.go
- iuiautomationeventhandler.go
- iuiautomationeventhandler_amd64.go
- iuiautomationexpandcollapsepattern.go
- iuiautomationinvokepattern.go
- iuiautomationselectionitempattern.go
- iuiautomationstructurechangedeventhandler.go
- iuiautomationstructurechangedeventhandler_amd64.go
- iuiautomationtreewalker.go
- iuiautomationvaluepattern.go
- patternid.go
- propertyidentifiers.go
- select.go
- treescope.go
- treewalker.go
- variant.go
- variant_amd64.go
- waitfind.go
Click to show internal directories.
Click to hide internal directories.