MatheusLPS Posted February 26, 2015 Share Posted February 26, 2015 (edited) Hi, why the AutoIt Window Information can not find the text inside the red box? Summary: expandcollapse popup>>>> Window <<<< Title: Selecione as Posições da Rota Class: FNWNS370 Position: 124, 219 Size: 467, 348 Style: 0x96C00000 ExStyle: 0x00000101 Handle: 0x001705C4 >>>> Control <<<< Class: pbdw70 Instance: 1 ClassnameNN: pbdw701 Name: Advanced (Class): [CLASS:pbdw70; INSTANCE:1] ID: 1001 Text: Position: 4, 5 Size: 455, 257 ControlClick Coords: 203, 68 Style: 0x56000003 ExStyle: 0x00000200 Handle: 0x00440D5C >>>> Mouse <<<< Position: 334, 314 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< none 1 registro(s) selecionado(s) &Pesquisa &Ok &Cancela &Ordena >>>> Hidden Text <<<< Edited February 26, 2015 by MatheusLPS Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 26, 2015 Moderators Share Posted February 26, 2015 MatheusLPS,Welcome to the AutoIt forum. But please pay attention to where you post - the "Dev Chat" section where you started this thread is not for general support questions. I have moved it for you, but would ask you to be more careful in future. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
MatheusLPS Posted February 26, 2015 Author Share Posted February 26, 2015 Oops, Thanks Melba23. I will look into it next time. Link to comment Share on other sites More sharing options...
MatheusLPS Posted February 27, 2015 Author Share Posted February 27, 2015 Hello, some updates: Well, AutoIt find windows, can not find this control: But I used this tool: SimpleSpy '?do=embed' frameborder='0' data-embedContent>> It returned it: expandcollapse popupMouse position is retrieved 78-347 At least we have an element [][pbdw70] Having the following values for all properties: Title is: <> Class := <pbdw70> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 15;269;1337;415 *** Parent Information top down *** 5: Title is: <Desktop> Class := <#32769> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 0;0;1366;768 "Title:=Desktop;controltype:=UIA_PaneControlTypeId;class:=#32769" 4: Title is: <S3i - versão 3.315 (Insp. Mec. PE)> Class := <FNWND370> controltype:= <UIA_WindowControlTypeId> ,<50032> , (0000C370) -4;-4;1374;724 "Title:=S3i - versão 3.315 (Insp. Mec. PE);controltype:=UIA_WindowControlTypeId;class:=FNWND370" 3: Title is: <Espaço de trabalho> Class := <MDIClient> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 0;90;1366;608 "Title:=Espaço de trabalho;controltype:=UIA_PaneControlTypeId;class:=MDIClient" 2: Title is: <Rotas de Inspeções Cronológicas> Class := <FNWND370> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 2;92;1362;604 "Title:=Rotas de Inspeções Cronológicas;controltype:=UIA_PaneControlTypeId;class:=FNWND370" 1: Title is: <> Class := <PBTabControl32_70> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 10;122;1348;568 "Title:=;controltype:=UIA_PaneControlTypeId;class:=PBTabControl32_70" 0: Title is: <Escopo> Class := <FNUDO370> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 14;150;1340;536 "Title:=Escopo;controltype:=UIA_PaneControlTypeId;class:=FNUDO370" ;~ *** Standard code *** #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) Local $oP4=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=S3i - versão 3.315 (Insp. Mec. PE);controltype:=UIA_WindowControlTypeId;class:=FNWND370", $treescope_children) _UIA_Action($oP4,"setfocus") Local $oP3=_UIA_getObjectByFindAll($oP4, "Title:=Espaço de trabalho;controltype:=UIA_PaneControlTypeId;class:=MDIClient", $treescope_children) _UIA_Action($oP3,"setfocus") Local $oP2=_UIA_getObjectByFindAll($oP3, "Title:=Rotas de Inspeções Cronológicas;controltype:=UIA_PaneControlTypeId;class:=FNWND370", $treescope_children) _UIA_Action($oP2,"setfocus") Local $oP1=_UIA_getObjectByFindAll($oP2, "Title:=;controltype:=UIA_PaneControlTypeId;class:=PBTabControl32_70", $treescope_children) _UIA_Action($oP1,"setfocus") Local $oP0=_UIA_getObjectByFindAll($oP1, "Title:=Escopo;controltype:=UIA_PaneControlTypeId;class:=FNUDO370", $treescope_children) _UIA_Action($oP0,"setfocus") _UIA_setVar(".mainwindow","title:=;classname:=pbdw70") _UIA_action(".mainwindow","setfocus") *** Detailed properties of the highlighted element *** UIA_class:= <pbdw70> UIA_regexpclass:= <pbdw70> UIA_iaccessiblechildId:= <0> UIA_id:= <1000> UIA_handle:= <329366> UIA_RuntimeId:= <42;329366> UIA_BoundingRectangle:= <15;269;1337;415> UIA_ProcessId:= <5960> UIA_ControlType:= <50033> UIA_LocalizedControlType:= <painel> UIA_HasKeyboardFocus:= <True> UIA_IsKeyboardFocusable:= <True> UIA_IsEnabled:= <True> UIA_AutomationId:= <1000> UIA_ClassName:= <pbdw70> UIA_Culture:= <0> UIA_IsControlElement:= <True> UIA_IsContentElement:= <True> UIA_IsPassword:= <False> UIA_NativeWindowHandle:= <329366> UIA_IsOffscreen:= <False> UIA_Orientation:= <0> UIA_FrameworkId:= <Win32> UIA_IsRequiredForForm:= <False> UIA_IsDockPatternAvailable:= <False> UIA_IsExpandCollapsePatternAvailable:= <False> UIA_IsGridItemPatternAvailable:= <False> UIA_IsGridPatternAvailable:= <False> UIA_IsInvokePatternAvailable:= <False> UIA_IsMultipleViewPatternAvailable:= <False> UIA_IsRangeValuePatternAvailable:= <False> UIA_IsScrollPatternAvailable:= <True> UIA_IsScrollItemPatternAvailable:= <False> UIA_IsSelectionItemPatternAvailable:= <False> UIA_IsSelectionPatternAvailable:= <False> UIA_IsTablePatternAvailable:= <False> UIA_IsTableItemPatternAvailable:= <False> UIA_IsTextPatternAvailable:= <False> UIA_IsTogglePatternAvailable:= <False> UIA_IsTransformPatternAvailable:= <False> UIA_IsValuePatternAvailable:= <False> UIA_IsWindowPatternAvailable:= <False> UIA_ValueIsReadOnly:= <True> UIA_RangeValueValue:= <0> UIA_RangeValueIsReadOnly:= <True> UIA_RangeValueMinimum:= <0> UIA_RangeValueMaximum:= <0> UIA_RangeValueLargeChange:= <0> UIA_RangeValueSmallChange:= <0> UIA_ScrollHorizontalScrollPercent:= <0> UIA_ScrollHorizontalViewSize:= <100> UIA_ScrollVerticalScrollPercent:= <0> UIA_ScrollVerticalViewSize:= <69.5530446955304> UIA_ScrollHorizontallyScrollable:= <False> UIA_ScrollVerticallyScrollable:= <True> UIA_SelectionCanSelectMultiple:= <False> UIA_SelectionIsSelectionRequired:= <False> UIA_GridRowCount:= <0> UIA_GridColumnCount:= <0> UIA_GridItemRow:= <0> UIA_GridItemColumn:= <0> UIA_GridItemRowSpan:= <1> UIA_GridItemColumnSpan:= <1> UIA_DockDockPosition:= <5> UIA_ExpandCollapseExpandCollapseState:= <3> UIA_MultipleViewCurrentView:= <0> UIA_WindowCanMaximize:= <False> UIA_WindowCanMinimize:= <False> UIA_WindowWindowVisualState:= <0> UIA_WindowWindowInteractionState:= <0> UIA_WindowIsModal:= <False> UIA_WindowIsTopmost:= <False> UIA_SelectionItemIsSelected:= <False> UIA_TableRowOrColumnMajor:= <2> UIA_ToggleToggleState:= <2> UIA_TransformCanMove:= <False> UIA_TransformCanResize:= <False> UIA_TransformCanRotate:= <False> UIA_IsLegacyIAccessiblePatternAvailable:= <True> UIA_LegacyIAccessibleChildId:= <0> UIA_LegacyIAccessibleRole:= <10> UIA_LegacyIAccessibleState:= <1048580> UIA_IsDataValidForForm:= <False> UIA_ProviderDescription:= <[pid:4384,hwnd:0x50696 Main:Nested [pid:5960,hwnd:0x50696 Annotation(parent link):Microsoft: Annotation Proxy (unmanaged:uiautomationcore.dll); Main:Microsoft: MSAA Proxy (unmanaged:uiautomationcore.dll)]; Nonclient:Microsoft: Non-Client Proxy (unmanaged:uiautomationcore.dll); Hwnd(parent link):Microsoft: HWND Proxy (unmanaged:uiautomationcore.dll)]> UIA_IsItemContainerPatternAvailable:= <False> UIA_IsVirtualizedItemPatternAvailable:= <False> UIA_IsSynchronizedInputPatternAvailable:= <False> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now