Jump to content

Noob question - Can not find window text

Recommended Posts


Hi, why the AutoIt Window Information can not find the text inside the red box?



>>>> 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
Advanced (Class): [CLASS:pbdw70; INSTANCE:1]
ID: 1001
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 <<<<
1 registro(s) selecionado(s)
>>>> Hidden Text <<<<
Edited by MatheusLPS

Share this post

Link to post
Share on other sites


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. ;)


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites


Thanks Melba23. 

I will look into it next time.

Share this post

Link to post
Share on other sites

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:

Mouse 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
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
0: Title is: <Escopo> Class   := <FNUDO370> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 14;150;1340;536
;~ *** 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) 
Local $oP3=_UIA_getObjectByFindAll($oP4, "Title:=Espaço de trabalho;controltype:=UIA_PaneControlTypeId;class:=MDIClient", $treescope_children) 
Local $oP2=_UIA_getObjectByFindAll($oP3, "Title:=Rotas de Inspeções Cronológicas;controltype:=UIA_PaneControlTypeId;class:=FNWND370", $treescope_children) 
Local $oP1=_UIA_getObjectByFindAll($oP2, "Title:=;controltype:=UIA_PaneControlTypeId;class:=PBTabControl32_70", $treescope_children) 
Local $oP0=_UIA_getObjectByFindAll($oP1, "Title:=Escopo;controltype:=UIA_PaneControlTypeId;class:=FNUDO370", $treescope_children) 
*** 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>

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.