#include-once Global Const $sCLSID_UIAutomationClient="{944DE083-8FB8-45CF-BCB7-C477ACB2F897}" ;CoClasses Global Const $sCLSID_CUIAutomation="{FF48DBA4-60EF-4201-AA87-54103EEF594E}" ;module UIA_PatternIds Global Const $UIA_InvokePatternId=10000 Global Const $UIA_SelectionPatternId=10001 Global Const $UIA_ValuePatternId=10002 Global Const $UIA_RangeValuePatternId=10003 Global Const $UIA_ScrollPatternId=10004 Global Const $UIA_ExpandCollapsePatternId=10005 Global Const $UIA_GridPatternId=10006 Global Const $UIA_GridItemPatternId=10007 Global Const $UIA_MultipleViewPatternId=10008 Global Const $UIA_WindowPatternId=10009 Global Const $UIA_SelectionItemPatternId=10010 Global Const $UIA_DockPatternId=10011 Global Const $UIA_TablePatternId=10012 Global Const $UIA_TableItemPatternId=10013 Global Const $UIA_TextPatternId=10014 Global Const $UIA_TogglePatternId=10015 Global Const $UIA_TransformPatternId=10016 Global Const $UIA_ScrollItemPatternId=10017 Global Const $UIA_LegacyIAccessiblePatternId=10018 Global Const $UIA_ItemContainerPatternId=10019 Global Const $UIA_VirtualizedItemPatternId=10020 Global Const $UIA_SynchronizedInputPatternId=10021 ;module UIA_EventIds Global Const $UIA_ToolTipOpenedEventId=20000 Global Const $UIA_ToolTipClosedEventId=20001 Global Const $UIA_StructureChangedEventId=20002 Global Const $UIA_MenuOpenedEventId=20003 Global Const $UIA_AutomationPropertyChangedEventId=20004 Global Const $UIA_AutomationFocusChangedEventId=20005 Global Const $UIA_AsyncContentLoadedEventId=20006 Global Const $UIA_MenuClosedEventId=20007 Global Const $UIA_LayoutInvalidatedEventId=20008 Global Const $UIA_Invoke_InvokedEventId=20009 Global Const $UIA_SelectionItem_ElementAddedToSelectionEventId=20010 Global Const $UIA_SelectionItem_ElementRemovedFromSelectionEventId=20011 Global Const $UIA_SelectionItem_ElementSelectedEventId=20012 Global Const $UIA_Selection_InvalidatedEventId=20013 Global Const $UIA_Text_TextSelectionChangedEventId=20014 Global Const $UIA_Text_TextChangedEventId=20015 Global Const $UIA_Window_WindowOpenedEventId=20016 Global Const $UIA_Window_WindowClosedEventId=20017 Global Const $UIA_MenuModeStartEventId=20018 Global Const $UIA_MenuModeEndEventId=20019 Global Const $UIA_InputReachedTargetEventId=20020 Global Const $UIA_InputReachedOtherElementEventId=20021 Global Const $UIA_InputDiscardedEventId=20022 ;module UIA_PropertyIds Global Const $UIA_RuntimeIdPropertyId=30000 Global Const $UIA_BoundingRectanglePropertyId=30001 Global Const $UIA_ProcessIdPropertyId=30002 Global Const $UIA_ControlTypePropertyId=30003 Global Const $UIA_LocalizedControlTypePropertyId=30004 Global Const $UIA_NamePropertyId=30005 Global Const $UIA_AcceleratorKeyPropertyId=30006 Global Const $UIA_AccessKeyPropertyId=30007 Global Const $UIA_HasKeyboardFocusPropertyId=30008 Global Const $UIA_IsKeyboardFocusablePropertyId=30009 Global Const $UIA_IsEnabledPropertyId=30010 Global Const $UIA_AutomationIdPropertyId=30011 Global Const $UIA_ClassNamePropertyId=30012 Global Const $UIA_HelpTextPropertyId=30013 Global Const $UIA_ClickablePointPropertyId=30014 Global Const $UIA_CulturePropertyId=30015 Global Const $UIA_IsControlElementPropertyId=30016 Global Const $UIA_IsContentElementPropertyId=30017 Global Const $UIA_LabeledByPropertyId=30018 Global Const $UIA_IsPasswordPropertyId=30019 Global Const $UIA_NativeWindowHandlePropertyId=30020 Global Const $UIA_ItemTypePropertyId=30021 Global Const $UIA_IsOffscreenPropertyId=30022 Global Const $UIA_OrientationPropertyId=30023 Global Const $UIA_FrameworkIdPropertyId=30024 Global Const $UIA_IsRequiredForFormPropertyId=30025 Global Const $UIA_ItemStatusPropertyId=30026 Global Const $UIA_IsDockPatternAvailablePropertyId=30027 Global Const $UIA_IsExpandCollapsePatternAvailablePropertyId=30028 Global Const $UIA_IsGridItemPatternAvailablePropertyId=30029 Global Const $UIA_IsGridPatternAvailablePropertyId=30030 Global Const $UIA_IsInvokePatternAvailablePropertyId=30031 Global Const $UIA_IsMultipleViewPatternAvailablePropertyId=30032 Global Const $UIA_IsRangeValuePatternAvailablePropertyId=30033 Global Const $UIA_IsScrollPatternAvailablePropertyId=30034 Global Const $UIA_IsScrollItemPatternAvailablePropertyId=30035 Global Const $UIA_IsSelectionItemPatternAvailablePropertyId=30036 Global Const $UIA_IsSelectionPatternAvailablePropertyId=30037 Global Const $UIA_IsTablePatternAvailablePropertyId=30038 Global Const $UIA_IsTableItemPatternAvailablePropertyId=30039 Global Const $UIA_IsTextPatternAvailablePropertyId=30040 Global Const $UIA_IsTogglePatternAvailablePropertyId=30041 Global Const $UIA_IsTransformPatternAvailablePropertyId=30042 Global Const $UIA_IsValuePatternAvailablePropertyId=30043 Global Const $UIA_IsWindowPatternAvailablePropertyId=30044 Global Const $UIA_ValueValuePropertyId=30045 Global Const $UIA_ValueIsReadOnlyPropertyId=30046 Global Const $UIA_RangeValueValuePropertyId=30047 Global Const $UIA_RangeValueIsReadOnlyPropertyId=30048 Global Const $UIA_RangeValueMinimumPropertyId=30049 Global Const $UIA_RangeValueMaximumPropertyId=30050 Global Const $UIA_RangeValueLargeChangePropertyId=30051 Global Const $UIA_RangeValueSmallChangePropertyId=30052 Global Const $UIA_ScrollHorizontalScrollPercentPropertyId=30053 Global Const $UIA_ScrollHorizontalViewSizePropertyId=30054 Global Const $UIA_ScrollVerticalScrollPercentPropertyId=30055 Global Const $UIA_ScrollVerticalViewSizePropertyId=30056 Global Const $UIA_ScrollHorizontallyScrollablePropertyId=30057 Global Const $UIA_ScrollVerticallyScrollablePropertyId=30058 Global Const $UIA_SelectionSelectionPropertyId=30059 Global Const $UIA_SelectionCanSelectMultiplePropertyId=30060 Global Const $UIA_SelectionIsSelectionRequiredPropertyId=30061 Global Const $UIA_GridRowCountPropertyId=30062 Global Const $UIA_GridColumnCountPropertyId=30063 Global Const $UIA_GridItemRowPropertyId=30064 Global Const $UIA_GridItemColumnPropertyId=30065 Global Const $UIA_GridItemRowSpanPropertyId=30066 Global Const $UIA_GridItemColumnSpanPropertyId=30067 Global Const $UIA_GridItemContainingGridPropertyId=30068 Global Const $UIA_DockDockPositionPropertyId=30069 Global Const $UIA_ExpandCollapseExpandCollapseStatePropertyId=30070 Global Const $UIA_MultipleViewCurrentViewPropertyId=30071 Global Const $UIA_MultipleViewSupportedViewsPropertyId=30072 Global Const $UIA_WindowCanMaximizePropertyId=30073 Global Const $UIA_WindowCanMinimizePropertyId=30074 Global Const $UIA_WindowWindowVisualStatePropertyId=30075 Global Const $UIA_WindowWindowInteractionStatePropertyId=30076 Global Const $UIA_WindowIsModalPropertyId=30077 Global Const $UIA_WindowIsTopmostPropertyId=30078 Global Const $UIA_SelectionItemIsSelectedPropertyId=30079 Global Const $UIA_SelectionItemSelectionContainerPropertyId=30080 Global Const $UIA_TableRowHeadersPropertyId=30081 Global Const $UIA_TableColumnHeadersPropertyId=30082 Global Const $UIA_TableRowOrColumnMajorPropertyId=30083 Global Const $UIA_TableItemRowHeaderItemsPropertyId=30084 Global Const $UIA_TableItemColumnHeaderItemsPropertyId=30085 Global Const $UIA_ToggleToggleStatePropertyId=30086 Global Const $UIA_TransformCanMovePropertyId=30087 Global Const $UIA_TransformCanResizePropertyId=30088 Global Const $UIA_TransformCanRotatePropertyId=30089 Global Const $UIA_IsLegacyIAccessiblePatternAvailablePropertyId=30090 Global Const $UIA_LegacyIAccessibleChildIdPropertyId=30091 Global Const $UIA_LegacyIAccessibleNamePropertyId=30092 Global Const $UIA_LegacyIAccessibleValuePropertyId=30093 Global Const $UIA_LegacyIAccessibleDescriptionPropertyId=30094 Global Const $UIA_LegacyIAccessibleRolePropertyId=30095 Global Const $UIA_LegacyIAccessibleStatePropertyId=30096 Global Const $UIA_LegacyIAccessibleHelpPropertyId=30097 Global Const $UIA_LegacyIAccessibleKeyboardShortcutPropertyId=30098 Global Const $UIA_LegacyIAccessibleSelectionPropertyId=30099 Global Const $UIA_LegacyIAccessibleDefaultActionPropertyId=30100 Global Const $UIA_AriaRolePropertyId=30101 Global Const $UIA_AriaPropertiesPropertyId=30102 Global Const $UIA_IsDataValidForFormPropertyId=30103 Global Const $UIA_ControllerForPropertyId=30104 Global Const $UIA_DescribedByPropertyId=30105 Global Const $UIA_FlowsToPropertyId=30106 Global Const $UIA_ProviderDescriptionPropertyId=30107 Global Const $UIA_IsItemContainerPatternAvailablePropertyId=30108 Global Const $UIA_IsVirtualizedItemPatternAvailablePropertyId=30109 Global Const $UIA_IsSynchronizedInputPatternAvailablePropertyId=30110 ;module UIA_TextAttributeIds Global Const $UIA_AnimationStyleAttributeId=40000 Global Const $UIA_BackgroundColorAttributeId=40001 Global Const $UIA_BulletStyleAttributeId=40002 Global Const $UIA_CapStyleAttributeId=40003 Global Const $UIA_CultureAttributeId=40004 Global Const $UIA_FontNameAttributeId=40005 Global Const $UIA_FontSizeAttributeId=40006 Global Const $UIA_FontWeightAttributeId=40007 Global Const $UIA_ForegroundColorAttributeId=40008 Global Const $UIA_HorizontalTextAlignmentAttributeId=40009 Global Const $UIA_IndentationFirstLineAttributeId=40010 Global Const $UIA_IndentationLeadingAttributeId=40011 Global Const $UIA_IndentationTrailingAttributeId=40012 Global Const $UIA_IsHiddenAttributeId=40013 Global Const $UIA_IsItalicAttributeId=40014 Global Const $UIA_IsReadOnlyAttributeId=40015 Global Const $UIA_IsSubscriptAttributeId=40016 Global Const $UIA_IsSuperscriptAttributeId=40017 Global Const $UIA_MarginBottomAttributeId=40018 Global Const $UIA_MarginLeadingAttributeId=40019 Global Const $UIA_MarginTopAttributeId=40020 Global Const $UIA_MarginTrailingAttributeId=40021 Global Const $UIA_OutlineStylesAttributeId=40022 Global Const $UIA_OverlineColorAttributeId=40023 Global Const $UIA_OverlineStyleAttributeId=40024 Global Const $UIA_StrikethroughColorAttributeId=40025 Global Const $UIA_StrikethroughStyleAttributeId=40026 Global Const $UIA_TabsAttributeId=40027 Global Const $UIA_TextFlowDirectionsAttributeId=40028 Global Const $UIA_UnderlineColorAttributeId=40029 Global Const $UIA_UnderlineStyleAttributeId=40030 ;module UIA_ControlTypeIds Global Const $UIA_ButtonControlTypeId=50000 Global Const $UIA_CalendarControlTypeId=50001 Global Const $UIA_CheckBoxControlTypeId=50002 Global Const $UIA_ComboBoxControlTypeId=50003 Global Const $UIA_EditControlTypeId=50004 Global Const $UIA_HyperlinkControlTypeId=50005 Global Const $UIA_ImageControlTypeId=50006 Global Const $UIA_ListItemControlTypeId=50007 Global Const $UIA_ListControlTypeId=50008 Global Const $UIA_MenuControlTypeId=50009 Global Const $UIA_MenuBarControlTypeId=50010 Global Const $UIA_MenuItemControlTypeId=50011 Global Const $UIA_ProgressBarControlTypeId=50012 Global Const $UIA_RadioButtonControlTypeId=50013 Global Const $UIA_ScrollBarControlTypeId=50014 Global Const $UIA_SliderControlTypeId=50015 Global Const $UIA_SpinnerControlTypeId=50016 Global Const $UIA_StatusBarControlTypeId=50017 Global Const $UIA_TabControlTypeId=50018 Global Const $UIA_TabItemControlTypeId=50019 Global Const $UIA_TextControlTypeId=50020 Global Const $UIA_ToolBarControlTypeId=50021 Global Const $UIA_ToolTipControlTypeId=50022 Global Const $UIA_TreeControlTypeId=50023 Global Const $UIA_TreeItemControlTypeId=50024 Global Const $UIA_CustomControlTypeId=50025 Global Const $UIA_GroupControlTypeId=50026 Global Const $UIA_ThumbControlTypeId=50027 Global Const $UIA_DataGridControlTypeId=50028 Global Const $UIA_DataItemControlTypeId=50029 Global Const $UIA_DocumentControlTypeId=50030 Global Const $UIA_SplitButtonControlTypeId=50031 Global Const $UIA_WindowControlTypeId=50032 Global Const $UIA_PaneControlTypeId=50033 Global Const $UIA_HeaderControlTypeId=50034 Global Const $UIA_HeaderItemControlTypeId=50035 Global Const $UIA_TableControlTypeId=50036 Global Const $UIA_TitleBarControlTypeId=50037 Global Const $UIA_SeparatorControlTypeId=50038 ;enum TreeScope Global Const $TreeScope_Element=1 Global Const $TreeScope_Children=2 Global Const $TreeScope_Descendants=4 Global Const $TreeScope_Parent=8 Global Const $TreeScope_Ancestors=16 Global Const $TreeScope_Subtree=7 ;enum AutomationElementMode Global Const $AutomationElementMode_None=0 Global Const $AutomationElementMode_Full=1 ;enum OrientationType Global Const $OrientationType_None=0 Global Const $OrientationType_Horizontal=1 Global Const $OrientationType_Vertical=2 ;enum PropertyConditionFlags Global Const $PropertyConditionFlags_None=0 Global Const $PropertyConditionFlags_IgnoreCase=1 ;enum StructureChangeType Global Const $StructureChangeType_ChildAdded=0 Global Const $StructureChangeType_ChildRemoved=1 Global Const $StructureChangeType_ChildrenInvalidated=2 Global Const $StructureChangeType_ChildrenBulkAdded=3 Global Const $StructureChangeType_ChildrenBulkRemoved=4 Global Const $StructureChangeType_ChildrenReordered=5 ;enum DockPosition Global Const $DockPosition_Top=0 Global Const $DockPosition_Left=1 Global Const $DockPosition_Bottom=2 Global Const $DockPosition_Right=3 Global Const $DockPosition_Fill=4 Global Const $DockPosition_None=5 ;enum ExpandCollapseState Global Const $ExpandCollapseState_Collapsed=0 Global Const $ExpandCollapseState_Expanded=1 Global Const $ExpandCollapseState_PartiallyExpanded=2 Global Const $ExpandCollapseState_LeafNode=3 ;enum ScrollAmount Global Const $ScrollAmount_LargeDecrement=0 Global Const $ScrollAmount_SmallDecrement=1 Global Const $ScrollAmount_NoAmount=2 Global Const $ScrollAmount_LargeIncrement=3 Global Const $ScrollAmount_SmallIncrement=4 ;enum SynchronizedInputType Global Const $SynchronizedInputType_KeyUp=1 Global Const $SynchronizedInputType_KeyDown=2 Global Const $SynchronizedInputType_LeftMouseUp=4 Global Const $SynchronizedInputType_LeftMouseDown=8 Global Const $SynchronizedInputType_RightMouseUp=16 Global Const $SynchronizedInputType_RightMouseDown=32 ;enum RowOrColumnMajor Global Const $RowOrColumnMajor_RowMajor=0 Global Const $RowOrColumnMajor_ColumnMajor=1 Global Const $RowOrColumnMajor_Indeterminate=2 ;enum ToggleState Global Const $ToggleState_Off=0 Global Const $ToggleState_On=1 Global Const $ToggleState_Indeterminate=2 ;enum WindowVisualState Global Const $WindowVisualState_Normal=0 Global Const $WindowVisualState_Maximized=1 Global Const $WindowVisualState_Minimized=2 ;enum WindowInteractionState Global Const $WindowInteractionState_Running=0 Global Const $WindowInteractionState_Closing=1 Global Const $WindowInteractionState_ReadyForUserInteraction=2 Global Const $WindowInteractionState_BlockedByModalWindow=3 Global Const $WindowInteractionState_NotResponding=4 ;enum TextPatternRangeEndpoint Global Const $TextPatternRangeEndpoint_Start=0 Global Const $TextPatternRangeEndpoint_End=1 ;enum TextUnit Global Const $TextUnit_Character=0 Global Const $TextUnit_Format=1 Global Const $TextUnit_Word=2 Global Const $TextUnit_Line=3 Global Const $TextUnit_Paragraph=4 Global Const $TextUnit_Page=5 Global Const $TextUnit_Document=6 ;enum SupportedTextSelection Global Const $SupportedTextSelection_None=0 Global Const $SupportedTextSelection_Single=1 Global Const $SupportedTextSelection_Multiple=2 ;enum ProviderOptions Global Const $ProviderOptions_ClientSideProvider=1 Global Const $ProviderOptions_ServerSideProvider=2 Global Const $ProviderOptions_NonClientAreaProvider=4 Global Const $ProviderOptions_OverrideProvider=8 Global Const $ProviderOptions_ProviderOwnsSetFocus=16 Global Const $ProviderOptions_UseComThreading=32 Global Const $sIID_IUIAutomationElement="{D22108AA-8AC5-49A5-837B-37BBB3D7591E}" Global $dtagIUIAutomationElement = "SetFocus hresult();" & _ "GetRuntimeId hresult(ptr*);" & _ "FindFirst hresult(long;ptr;ptr*);" & _ "FindAll hresult(long;ptr;ptr*);" & _ "FindFirstBuildCache hresult(long;ptr;ptr;ptr*);" & _ "FindAllBuildCache hresult(long;ptr;ptr;ptr*);" & _ "BuildUpdatedCache hresult(ptr;ptr*);" & _ "GetCurrentPropertyValue hresult(int;variant*);" & _ "GetCurrentPropertyValueEx hresult(int;long;variant*);" & _ "GetCachedPropertyValue hresult(int;variant*);" & _ "GetCachedPropertyValueEx hresult(int;long;variant*);" & _ "GetCurrentPatternAs hresult(int;none;none*);" & _ "GetCachedPatternAs hresult(int;none;none*);" & _ "GetCurrentPattern hresult(int;ptr*);" & _ "GetCachedPattern hresult(int;ptr*);" & _ "GetCachedParent hresult(ptr*);" & _ "GetCachedChildren hresult(ptr*);" & _ "CurrentProcessId hresult(int*);" & _ "CurrentControlType hresult(int*);" & _ "CurrentLocalizedControlType hresult(bstr*);" & _ "CurrentName hresult(bstr*);" & _ "CurrentAcceleratorKey hresult(bstr*);" & _ "CurrentAccessKey hresult(bstr*);" & _ "CurrentHasKeyboardFocus hresult(long*);" & _ "CurrentIsKeyboardFocusable hresult(long*);" & _ "CurrentIsEnabled hresult(long*);" & _ "CurrentAutomationId hresult(bstr*);" & _ "CurrentClassName hresult(bstr*);" & _ "CurrentHelpText hresult(bstr*);" & _ "CurrentCulture hresult(int*);" & _ "CurrentIsControlElement hresult(long*);" & _ "CurrentIsContentElement hresult(long*);" & _ "CurrentIsPassword hresult(long*);" & _ "CurrentNativeWindowHandle hresult(hwnd*);" & _ "CurrentItemType hresult(bstr*);" & _ "CurrentIsOffscreen hresult(long*);" & _ "CurrentOrientation hresult(long*);" & _ "CurrentFrameworkId hresult(bstr*);" & _ "CurrentIsRequiredForForm hresult(long*);" & _ "CurrentItemStatus hresult(bstr*);" & _ "CurrentBoundingRectangle hresult(struct*);" & _ "CurrentLabeledBy hresult(ptr*);" & _ "CurrentAriaRole hresult(bstr*);" & _ "CurrentAriaProperties hresult(bstr*);" & _ "CurrentIsDataValidForForm hresult(long*);" & _ "CurrentControllerFor hresult(ptr*);" & _ "CurrentDescribedBy hresult(ptr*);" & _ "CurrentFlowsTo hresult(ptr*);" & _ "CurrentProviderDescription hresult(bstr*);" & _ "CachedProcessId hresult(int*);" & _ "CachedControlType hresult(int*);" & _ "CachedLocalizedControlType hresult(bstr*);" & _ "CachedName hresult(bstr*);" & _ "CachedAcceleratorKey hresult(bstr*);" & _ "CachedAccessKey hresult(bstr*);" & _ "CachedHasKeyboardFocus hresult(long*);" & _ "CachedIsKeyboardFocusable hresult(long*);" & _ "CachedIsEnabled hresult(long*);" & _ "CachedAutomationId hresult(bstr*);" & _ "CachedClassName hresult(bstr*);" & _ "CachedHelpText hresult(bstr*);" & _ "CachedCulture hresult(int*);" & _ "CachedIsControlElement hresult(long*);" & _ "CachedIsContentElement hresult(long*);" & _ "CachedIsPassword hresult(long*);" & _ "CachedNativeWindowHandle hresult(hwnd*);" & _ "CachedItemType hresult(bstr*);" & _ "CachedIsOffscreen hresult(long*);" & _ "CachedOrientation hresult(long*);" & _ "CachedFrameworkId hresult(bstr*);" & _ "CachedIsRequiredForForm hresult(long*);" & _ "CachedItemStatus hresult(bstr*);" & _ "CachedBoundingRectangle hresult(struct*);" & _ "CachedLabeledBy hresult(ptr*);" & _ "CachedAriaRole hresult(bstr*);" & _ "CachedAriaProperties hresult(bstr*);" & _ "CachedIsDataValidForForm hresult(long*);" & _ "CachedControllerFor hresult(ptr*);" & _ "CachedDescribedBy hresult(ptr*);" & _ "CachedFlowsTo hresult(ptr*);" & _ "CachedProviderDescription hresult(bstr*);" & _ "GetClickablePoint hresult(struct*;long*);" Global Const $sIID_IUIAutomationCondition="{352FFBA8-0973-437C-A61F-F64CAFD81DF9}" Global $dtagIUIAutomationCondition = "" Global Const $sIID_IUIAutomationElementArray="{14314595-B4BC-4055-95F2-58F2E42C9855}" Global $dtagIUIAutomationElementArray = "Length hresult(int*);" & _ "GetElement hresult(int;ptr*);" Global Const $sIID_IUIAutomationCacheRequest="{B32A92B5-BC25-4078-9C08-D7EE95C48E03}" Global $dtagIUIAutomationCacheRequest = "AddProperty hresult(int);" & _ "AddPattern hresult(int);" & _ "Clone hresult(ptr*);" & _ "get_TreeScope hresult(long*);" & _ "put_TreeScope hresult(long);" & _ "get_TreeFilter hresult(ptr*);" & _ "put_TreeFilter hresult(ptr);" & _ "get_AutomationElementMode hresult(long*);" & _ "put_AutomationElementMode hresult(long);" Global Const $sIID_IUIAutomationBoolCondition="{1B4E1F2E-75EB-4D0B-8952-5A69988E2307}" Global $dtagIUIAutomationBoolCondition = "BooleanValue hresult(long*);" Global Const $sIID_IUIAutomationPropertyCondition="{99EBF2CB-5578-4267-9AD4-AFD6EA77E94B}" Global $dtagIUIAutomationPropertyCondition = "propertyId hresult(int*);" & _ "PropertyValue hresult(variant*);" & _ "PropertyConditionFlags hresult(long*);" Global Const $sIID_IUIAutomationAndCondition="{A7D0AF36-B912-45FE-9855-091DDC174AEC}" Global $dtagIUIAutomationAndCondition = "ChildCount hresult(int*);" & _ "GetChildrenAsNativeArray hresult(ptr*;int*);" & _ "GetChildren hresult(ptr*);" Global Const $sIID_IUIAutomationOrCondition="{8753F032-3DB1-47B5-A1FC-6E34A266C712}" Global $dtagIUIAutomationOrCondition = "ChildCount hresult(int*);" & _ "GetChildrenAsNativeArray hresult(ptr*;int*);" & _ "GetChildren hresult(ptr*);" Global Const $sIID_IUIAutomationNotCondition="{F528B657-847B-498C-8896-D52B565407A1}" Global $dtagIUIAutomationNotCondition = "GetChild hresult(ptr*);" Global Const $sIID_IUIAutomationTreeWalker="{4042C624-389C-4AFC-A630-9DF854A541FC}" Global $dtagIUIAutomationTreeWalker = "GetParentElement hresult(ptr;ptr*);" & _ "GetFirstChildElement hresult(ptr;ptr*);" & _ "GetLastChildElement hresult(ptr;ptr*);" & _ "GetNextSiblingElement hresult(ptr;ptr*);" & _ "GetPreviousSiblingElement hresult(ptr;ptr*);" & _ "NormalizeElement hresult(ptr;ptr*);" & _ "GetParentElementBuildCache hresult(ptr;ptr;ptr*);" & _ "GetFirstChildElementBuildCache hresult(ptr;ptr;ptr*);" & _ "GetLastChildElementBuildCache hresult(ptr;ptr;ptr*);" & _ "GetNextSiblingElementBuildCache hresult(ptr;ptr;ptr*);" & _ "GetPreviousSiblingElementBuildCache hresult(ptr;ptr;ptr*);" & _ "NormalizeElementBuildCache hresult(ptr;ptr;ptr*);" & _ "condition hresult(ptr*);" Global Const $sIID_IUIAutomationEventHandler="{146C3C17-F12E-4E22-8C27-F894B9B79C69}" Global $dtagIUIAutomationEventHandler = "HandleAutomationEvent hresult(ptr;int);" Global Const $sIID_IUIAutomationPropertyChangedEventHandler="{40CD37D4-C756-4B0C-8C6F-BDDFEEB13B50}" Global $dtagIUIAutomationPropertyChangedEventHandler = "HandlePropertyChangedEvent hresult(ptr;int;variant);" ;~ Global $dtagIUIAutomationPropertyChangedEventHandler = "HandlePropertyChangedEvent hresult(ptr;int;variant*);" ;~ Global $dtagIUIAutomationPropertyChangedEventHandler = "HandlePropertyChangedEvent hresult(ptr;int;ptr*);" Global Const $sIID_IUIAutomationStructureChangedEventHandler="{E81D1B4E-11C5-42F8-9754-E7036C79F054}" Global $dtagIUIAutomationStructureChangedEventHandler = "HandleStructureChangedEvent hresult(ptr;long;ptr);" Global Const $sIID_IUIAutomationFocusChangedEventHandler="{C270F6B5-5C69-4290-9745-7A7F97169468}" Global $dtagIUIAutomationFocusChangedEventHandler = "HandleFocusChangedEvent hresult(ptr);" Global Const $sIID_IUIAutomationInvokePattern="{FB377FBE-8EA6-46D5-9C73-6499642D3059}" Global $dtagIUIAutomationInvokePattern = "Invoke hresult();" Global Const $sIID_IUIAutomationDockPattern="{FDE5EF97-1464-48F6-90BF-43D0948E86EC}" Global $dtagIUIAutomationDockPattern = "SetDockPosition hresult(long);" & _ "CurrentDockPosition hresult(long*);" & _ "CachedDockPosition hresult(long*);" Global Const $sIID_IUIAutomationExpandCollapsePattern="{619BE086-1F4E-4EE4-BAFA-210128738730}" Global $dtagIUIAutomationExpandCollapsePattern = "Expand hresult();" & _ "Collapse hresult();" & _ "CurrentExpandCollapseState hresult(long*);" & _ "CachedExpandCollapseState hresult(long*);" Global Const $sIID_IUIAutomationGridPattern="{414C3CDC-856B-4F5B-8538-3131C6302550}" Global $dtagIUIAutomationGridPattern = "GetItem hresult(int;int;ptr*);" & _ "CurrentRowCount hresult(int*);" & _ "CurrentColumnCount hresult(int*);" & _ "CachedRowCount hresult(int*);" & _ "CachedColumnCount hresult(int*);" Global Const $sIID_IUIAutomationGridItemPattern="{78F8EF57-66C3-4E09-BD7C-E79B2004894D}" Global $dtagIUIAutomationGridItemPattern = "CurrentContainingGrid hresult(ptr*);" & _ "CurrentRow hresult(int*);" & _ "CurrentColumn hresult(int*);" & _ "CurrentRowSpan hresult(int*);" & _ "CurrentColumnSpan hresult(int*);" & _ "CachedContainingGrid hresult(ptr*);" & _ "CachedRow hresult(int*);" & _ "CachedColumn hresult(int*);" & _ "CachedRowSpan hresult(int*);" & _ "CachedColumnSpan hresult(int*);" Global Const $sIID_IUIAutomationMultipleViewPattern="{8D253C91-1DC5-4BB5-B18F-ADE16FA495E8}" Global $dtagIUIAutomationMultipleViewPattern = "GetViewName hresult(int;bstr*);" & _ "SetCurrentView hresult(int);" & _ "CurrentCurrentView hresult(int*);" & _ "GetCurrentSupportedViews hresult(ptr*);" & _ "CachedCurrentView hresult(int*);" & _ "GetCachedSupportedViews hresult(ptr*);" Global Const $sIID_IUIAutomationRangeValuePattern="{59213F4F-7346-49E5-B120-80555987A148}" Global $dtagIUIAutomationRangeValuePattern = "SetValue hresult(ushort);" & _ "CurrentValue hresult(ushort*);" & _ "CurrentIsReadOnly hresult(long*);" & _ "CurrentMaximum hresult(ushort*);" & _ "CurrentMinimum hresult(ushort*);" & _ "CurrentLargeChange hresult(ushort*);" & _ "CurrentSmallChange hresult(ushort*);" & _ "CachedValue hresult(ushort*);" & _ "CachedIsReadOnly hresult(long*);" & _ "CachedMaximum hresult(ushort*);" & _ "CachedMinimum hresult(ushort*);" & _ "CachedLargeChange hresult(ushort*);" & _ "CachedSmallChange hresult(ushort*);" Global Const $sIID_IUIAutomationScrollPattern="{88F4D42A-E881-459D-A77C-73BBBB7E02DC}" Global $dtagIUIAutomationScrollPattern = "Scroll hresult(long;long);" & _ "SetScrollPercent hresult(ushort;ushort);" & _ "CurrentHorizontalScrollPercent hresult(ushort*);" & _ "CurrentVerticalScrollPercent hresult(ushort*);" & _ "CurrentHorizontalViewSize hresult(ushort*);" & _ "CurrentVerticalViewSize hresult(ushort*);" & _ "CurrentHorizontallyScrollable hresult(long*);" & _ "CurrentVerticallyScrollable hresult(long*);" & _ "CachedHorizontalScrollPercent hresult(ushort*);" & _ "CachedVerticalScrollPercent hresult(ushort*);" & _ "CachedHorizontalViewSize hresult(ushort*);" & _ "CachedVerticalViewSize hresult(ushort*);" & _ "CachedHorizontallyScrollable hresult(long*);" & _ "CachedVerticallyScrollable hresult(long*);" Global Const $sIID_IUIAutomationScrollItemPattern="{B488300F-D015-4F19-9C29-BB595E3645EF}" Global $dtagIUIAutomationScrollItemPattern = "ScrollIntoView hresult();" Global Const $sIID_IUIAutomationSelectionPattern="{5ED5202E-B2AC-47A6-B638-4B0BF140D78E}" Global $dtagIUIAutomationSelectionPattern = "GetCurrentSelection hresult(ptr*);" & _ "CurrentCanSelectMultiple hresult(long*);" & _ "CurrentIsSelectionRequired hresult(long*);" & _ "GetCachedSelection hresult(ptr*);" & _ "CachedCanSelectMultiple hresult(long*);" & _ "CachedIsSelectionRequired hresult(long*);" Global Const $sIID_IUIAutomationSelectionItemPattern="{A8EFA66A-0FDA-421A-9194-38021F3578EA}" Global $dtagIUIAutomationSelectionItemPattern = "Select hresult();" & _ "AddToSelection hresult();" & _ "RemoveFromSelection hresult();" & _ "CurrentIsSelected hresult(long*);" & _ "CurrentSelectionContainer hresult(ptr*);" & _ "CachedIsSelected hresult(long*);" & _ "CachedSelectionContainer hresult(ptr*);" Global Const $sIID_IUIAutomationSynchronizedInputPattern="{2233BE0B-AFB7-448B-9FDA-3B378AA5EAE1}" Global $dtagIUIAutomationSynchronizedInputPattern = "StartListening hresult(long);" & _ "Cancel hresult();" Global Const $sIID_IUIAutomationTablePattern="{620E691C-EA96-4710-A850-754B24CE2417}" Global $dtagIUIAutomationTablePattern = "GetCurrentRowHeaders hresult(ptr*);" & _ "GetCurrentColumnHeaders hresult(ptr*);" & _ "CurrentRowOrColumnMajor hresult(long*);" & _ "GetCachedRowHeaders hresult(ptr*);" & _ "GetCachedColumnHeaders hresult(ptr*);" & _ "CachedRowOrColumnMajor hresult(long*);" Global Const $sIID_IUIAutomationTableItemPattern="{0B964EB3-EF2E-4464-9C79-61D61737A27E}" Global $dtagIUIAutomationTableItemPattern = "GetCurrentRowHeaderItems hresult(ptr*);" & _ "GetCurrentColumnHeaderItems hresult(ptr*);" & _ "GetCachedRowHeaderItems hresult(ptr*);" & _ "GetCachedColumnHeaderItems hresult(ptr*);" Global Const $sIID_IUIAutomationTogglePattern="{94CF8058-9B8D-4AB9-8BFD-4CD0A33C8C70}" Global $dtagIUIAutomationTogglePattern = "Toggle hresult();" & _ "CurrentToggleState hresult(long*);" & _ "CachedToggleState hresult(long*);" Global Const $sIID_IUIAutomationTransformPattern="{A9B55844-A55D-4EF0-926D-569C16FF89BB}" Global $dtagIUIAutomationTransformPattern = "Move hresult(double;double);" & _ ;~ fixed ushort to be double "Resize hresult(double;double);" & _ ;~ fixed ushort to be double "Rotate hresult(ushort);" & _ "CurrentCanMove hresult(long*);" & _ "CurrentCanResize hresult(long*);" & _ "CurrentCanRotate hresult(long*);" & _ "CachedCanMove hresult(long*);" & _ "CachedCanResize hresult(long*);" & _ "CachedCanRotate hresult(long*);" Global Const $sIID_IUIAutomationValuePattern="{A94CD8B1-0844-4CD6-9D2D-640537AB39E9}" Global $dtagIUIAutomationValuePattern = "SetValue hresult(bstr);" & _ "CurrentValue hresult(bstr*);" & _ "CurrentIsReadOnly hresult(long*);" & _ "CachedValue hresult(bstr*);" & _ "CachedIsReadOnly hresult(long*);" Global Const $sIID_IUIAutomationWindowPattern="{0FAEF453-9208-43EF-BBB2-3B485177864F}" Global $dtagIUIAutomationWindowPattern = "Close hresult();" & _ "WaitForInputIdle hresult(int;long*);" & _ "SetWindowVisualState hresult(long);" & _ "CurrentCanMaximize hresult(long*);" & _ "CurrentCanMinimize hresult(long*);" & _ "CurrentIsModal hresult(long*);" & _ "CurrentIsTopmost hresult(long*);" & _ "CurrentWindowVisualState hresult(long*);" & _ "CurrentWindowInteractionState hresult(long*);" & _ "CachedCanMaximize hresult(long*);" & _ "CachedCanMinimize hresult(long*);" & _ "CachedIsModal hresult(long*);" & _ "CachedIsTopmost hresult(long*);" & _ "CachedWindowVisualState hresult(long*);" & _ "CachedWindowInteractionState hresult(long*);" Global Const $sIID_IUIAutomationTextRange="{A543CC6A-F4AE-494B-8239-C814481187A8}" Global $dtagIUIAutomationTextRange = "Clone hresult(ptr*);" & _ "Compare hresult(ptr;long*);" & _ "CompareEndpoints hresult(long;ptr;long;int*);" & _ "ExpandToEnclosingUnit hresult(long);" & _ "FindAttribute hresult(int;variant;long;ptr*);" & _ "FindText hresult(bstr;long;long;ptr*);" & _ "GetAttributeValue hresult(int;variant*);" & _ "GetBoundingRectangles hresult(ptr*);" & _ "GetEnclosingElement hresult(ptr*);" & _ "GetText hresult(int;bstr*);" & _ "Move hresult(long;int;int*);" & _ "MoveEndpointByUnit hresult(long;long;int;int*);" & _ "MoveEndpointByRange hresult(long;ptr;long);" & _ "Select hresult();" & _ "AddToSelection hresult();" & _ "RemoveFromSelection hresult();" & _ "ScrollIntoView hresult(long);" & _ "GetChildren hresult(ptr*);" Global Const $sIID_IUIAutomationTextRangeArray="{CE4AE76A-E717-4C98-81EA-47371D028EB6}" Global $dtagIUIAutomationTextRangeArray = "Length hresult(int*);" & _ "GetElement hresult(int;ptr*);" Global Const $sIID_IUIAutomationTextPattern="{32EBA289-3583-42C9-9C59-3B6D9A1E9B6A}" Global $dtagIUIAutomationTextPattern = "RangeFromPoint hresult(struct;ptr*);" & _ "RangeFromChild hresult(ptr;ptr*);" & _ "GetSelection hresult(ptr*);" & _ "GetVisibleRanges hresult(ptr*);" & _ "DocumentRange hresult(ptr*);" & _ "SupportedTextSelection hresult(long*);" Global Const $sIID_IUIAutomationLegacyIAccessiblePattern="{828055AD-355B-4435-86D5-3B51C14A9B1B}" Global $dtagIUIAutomationLegacyIAccessiblePattern = "Select hresult(long);" & _ "DoDefaultAction hresult();" & _ "SetValue hresult(wstr);" & _ "CurrentChildId hresult(int*);" & _ "CurrentName hresult(bstr*);" & _ "CurrentValue hresult(bstr*);" & _ "CurrentDescription hresult(bstr*);" & _ "CurrentRole hresult(uint*);" & _ "CurrentState hresult(uint*);" & _ "CurrentHelp hresult(bstr*);" & _ "CurrentKeyboardShortcut hresult(bstr*);" & _ "GetCurrentSelection hresult(ptr*);" & _ "CurrentDefaultAction hresult(bstr*);" & _ "CachedChildId hresult(int*);" & _ "CachedName hresult(bstr*);" & _ "CachedValue hresult(bstr*);" & _ "CachedDescription hresult(bstr*);" & _ "CachedRole hresult(uint*);" & _ "CachedState hresult(uint*);" & _ "CachedHelp hresult(bstr*);" & _ "CachedKeyboardShortcut hresult(bstr*);" & _ "GetCachedSelection hresult(ptr*);" & _ "CachedDefaultAction hresult(bstr*);" & _ "GetIAccessible hresult(idispatch*);" Global Const $sIID_IAccessible="{618736E0-3C3D-11CF-810C-00AA00389B71}" Global $dtagIAccessible = "GetTypeInfoCount hresult(uint*);" & _ ; IDispatch "GetTypeInfo hresult(uint;int;ptr*);" & _ "GetIDsOfNames hresult(struct*;wstr;uint;int;int);" & _ "Invoke hresult(int;struct*;int;word;ptr*;ptr*;ptr*;uint*);" & _ "get_accParent hresult(ptr*);" & _ ; IAccessible "get_accChildCount hresult(long*);" & _ "get_accChild hresult(variant;idispatch*);" & _ "get_accName hresult(variant;bstr*);" & _ "get_accValue hresult(variant;bstr*);" & _ "get_accDescription hresult(variant;bstr*);" & _ "get_accRole hresult(variant;variant*);" & _ "get_accState hresult(variant;variant*);" & _ "get_accHelp hresult(variant;bstr*);" & _ "get_accHelpTopic hresult(bstr*;variant;long*);" & _ "get_accKeyboardShortcut hresult(variant;bstr*);" & _ "get_accFocus hresult(struct*);" & _ "get_accSelection hresult(variant*);" & _ "get_accDefaultAction hresult(variant;bstr*);" & _ "accSelect hresult(long;variant);" & _ "accLocation hresult(long*;long*;long*;long*;variant);" & _ "accNavigate hresult(long;variant;variant*);" & _ "accHitTest hresult(long;long;variant*);" & _ "accDoDefaultAction hresult(variant);" & _ "put_accName hresult(variant;bstr);" & _ "put_accValue hresult(variant;bstr);" Global Const $sIID_IUIAutomationItemContainerPattern="{C690FDB2-27A8-423C-812D-429773C9084E}" Global $dtagIUIAutomationItemContainerPattern = "FindItemByProperty hresult(ptr;int;variant;ptr*);" Global Const $sIID_IUIAutomationVirtualizedItemPattern="{6BA3D7A6-04CF-4F11-8793-A8D1CDE9969F}" Global $dtagIUIAutomationVirtualizedItemPattern = "Realize hresult();" Global Const $sIID_IUIAutomationProxyFactory="{85B94ECD-849D-42B6-B94D-D6DB23FDF5A4}" Global $dtagIUIAutomationProxyFactory = "CreateProvider hresult(hwnd;long;long;ptr*);" & _ "ProxyFactoryId hresult(bstr*);" Global Const $sIID_IRawElementProviderSimple="{D6DD68D1-86FD-4332-8666-9ABEDEA2D24C}" Global $dtagIRawElementProviderSimple = "ProviderOptions hresult(long*);" & _ "GetPatternProvider hresult(int;ptr*);" & _ "GetPropertyValue hresult(int;variant*);" & _ "HostRawElementProvider hresult(ptr*);" Global Const $sIID_IUIAutomationProxyFactoryEntry="{D50E472E-B64B-490C-BCA1-D30696F9F289}" Global $dtagIUIAutomationProxyFactoryEntry = "ProxyFactory hresult(ptr*);" & _ "ClassName hresult(bstr*);" & _ "ImageName hresult(bstr*);" & _ "AllowSubstringMatch hresult(long*);" & _ "CanCheckBaseClass hresult(long*);" & _ "NeedsAdviseEvents hresult(long*);" & _ "ClassName hresult(wstr);" & _ "ImageName hresult(wstr);" & _ "AllowSubstringMatch hresult(long);" & _ "CanCheckBaseClass hresult(long);" & _ "NeedsAdviseEvents hresult(long);" & _ "SetWinEventsForAutomationEvent hresult(int;int;ptr);" & _ "GetWinEventsForAutomationEvent hresult(int;int;ptr*);" Global Const $sIID_IUIAutomationProxyFactoryMapping="{09E31E18-872D-4873-93D1-1E541EC133FD}" Global $dtagIUIAutomationProxyFactoryMapping = "count hresult(uint*);" & _ "GetTable hresult(ptr*);" & _ "GetEntry hresult(uint;ptr*);" & _ "SetTable hresult(ptr);" & _ "InsertEntries hresult(uint;ptr);" & _ "InsertEntry hresult(uint;ptr);" & _ "RemoveEntry hresult(uint);" & _ "ClearTable hresult();" & _ "RestoreDefaultTable hresult();" Global Const $sIID_IUIAutomation="{30CBE57D-D9D0-452A-AB13-7AC5AC4825EE}" Global $dtagIUIAutomation = "CompareElements hresult(ptr;ptr;long*);" & _ "CompareRuntimeIds hresult(ptr;ptr;long*);" & _ "GetRootElement hresult(ptr*);" & _ "ElementFromHandle hresult(hwnd;ptr*);" & _ "ElementFromPoint hresult(struct;ptr*);" & _ "GetFocusedElement hresult(ptr*);" & _ "GetRootElementBuildCache hresult(ptr;ptr*);" & _ "ElementFromHandleBuildCache hresult(hwnd;ptr;ptr*);" & _ "ElementFromPointBuildCache hresult(struct;ptr;ptr*);" & _ "GetFocusedElementBuildCache hresult(ptr;ptr*);" & _ "CreateTreeWalker hresult(ptr;ptr*);" & _ "ControlViewWalker hresult(ptr*);" & _ "ContentViewWalker hresult(ptr*);" & _ "RawViewWalker hresult(ptr*);" & _ "RawViewCondition hresult(ptr*);" & _ "ControlViewCondition hresult(ptr*);" & _ "ContentViewCondition hresult(ptr*);" & _ "CreateCacheRequest hresult(ptr*);" & _ "CreateTrueCondition hresult(ptr*);" & _ "CreateFalseCondition hresult(ptr*);" & _ "CreatePropertyCondition hresult(int;variant;ptr*);" & _ "CreatePropertyConditionEx hresult(int;variant;long;ptr*);" & _ "CreateAndCondition hresult(ptr;ptr;ptr*);" & _ "CreateAndConditionFromArray hresult(ptr;ptr*);" & _ "CreateAndConditionFromNativeArray hresult(ptr;int;ptr*);" & _ "CreateOrCondition hresult(ptr;ptr;ptr*);" & _ "CreateOrConditionFromArray hresult(ptr;ptr*);" & _ "CreateOrConditionFromNativeArray hresult(ptr;int;ptr*);" & _ "CreateNotCondition hresult(ptr;ptr*);" & _ "AddAutomationEventHandler hresult(int;ptr;long;ptr;ptr);" & _ "RemoveAutomationEventHandler hresult(int;ptr;ptr);" & _ "AddPropertyChangedEventHandlerNativeArray hresult(ptr;long;ptr;ptr;struct*;int);" & _ "AddPropertyChangedEventHandler hresult(ptr;long;ptr;ptr;ptr);" & _ "RemovePropertyChangedEventHandler hresult(ptr;ptr);" & _ "AddStructureChangedEventHandler hresult(ptr;long;ptr;ptr);" & _ "RemoveStructureChangedEventHandler hresult(ptr;ptr);" & _ "AddFocusChangedEventHandler hresult(ptr;ptr);" & _ "RemoveFocusChangedEventHandler hresult(ptr);" & _ "RemoveAllEventHandlers hresult();" & _ "IntNativeArrayToSafeArray hresult(int;int;ptr*);" & _ "IntSafeArrayToNativeArray hresult(ptr;int*;int*);" & _ "RectToVariant hresult(struct;variant*);" & _ "VariantToRect hresult(variant;struct*);" & _ "SafeArrayToRectNativeArray hresult(ptr;struct*;int*);" & _ "CreateProxyFactoryEntry hresult(ptr;ptr*);" & _ "ProxyFactoryMapping hresult(ptr*);" & _ "GetPropertyProgrammaticName hresult(int;bstr*);" & _ "GetPatternProgrammaticName hresult(int;bstr*);" & _ "PollForPotentialSupportedPatterns hresult(ptr;ptr*;ptr*);" & _ "PollForPotentialSupportedProperties hresult(ptr;ptr*;ptr*);" & _ "CheckNotSupported hresult(variant;long*);" & _ "ReservedNotSupportedValue hresult(ptr*);" & _ "ReservedMixedAttributeValue hresult(ptr*);" & _ "ElementFromIAccessible hresult(idispatch;int;ptr*);" & _ "ElementFromIAccessibleBuildCache hresult(iaccessible;int;ptr;ptr*);"