Jump to content

Recommended Posts

Posted

Hello,

 

I have a datatable list with the below details and would like to know if a can click on an item searching by its name.

Id: 
Text: EditTable
Class: DataTbl

 

Thanks for the help

Posted

The is not a GUI created by autoit. It is an external program that there is a datatablelist and I want to select an item by its name so that i am sure that the same item is always selected.

 

Thanks

Posted

yes tried all the tool mentioned and what I can get are:

ControlType:    UIA_PaneControlTypeId

ExStyle:    0x00000101
Handle:    0x00000000000D0BA8

>>>> Control <<<<
Class:    DataTbl
Instance:    1
ClassnameNN:    DataTbl1
Name:    
Advanced (Class):    [CLASS:DataTbl; INSTANCE:1]

Posted
37 minutes ago, ronald82 said:

yes tried all the tool mentioned

No, simplespy alone will give you a lot more data than that. Try again. :D 

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Posted

I answered in post 2 yes you can click on it and most likely in simplespy output you will find a property that contains the text to identify.

If you literally want to use name property answer is likely no as its empty.

Retry with simplespy and run code that simplespy gives.

After that read some of the threads @LarsJ made like.https://docs.uipath.com/studio/docs/managing-variables

Posted

Hi,

 

So maybe to give more details SWAPY managed to get the contents:

 

Access names : []
Class : ListBox
ClientRects : [<RECT L0, T0, R59, B13>]
ContextHelpID : 0
ControlCount : 0
ControlID : 8
ExStyle : 512
Fonts : [<LOGFONTW 'MS Sans Serif' -11>]
FriendlyClassName : ListBox
handle : 2034008
IsEnabled : True
IsUnicode : True
IsVisible : False
MenuItems : []
pwa_type : <class 'pywinauto.controls.win32_controls.ListBoxWrapper'>
Rectangle : (L346, T654, R428, B673)
SelectedIndices : (-1,)
Style : 1084228035
Texts : ['', u'Test1', u'Test2', u'Test3', u'Test4', u'Test5', u'ADDRESS_CAT1', u'ADDRESS_CAT2', u'ADDRESS_CAT3', u'ADDRESS_CAT4',"]
UserData : 0

 

Somehow SWAPY is getting a Class: Listbox while with control viewer I'm getting a CLASS:DataTbl

 

Is there a method I can get the text from auto it? I tried many function from _GUICtrlListBox_* to no avail

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...