Jump to content

select an item from a "Class: DataTbl"


Recommended Posts

Link to comment
Share on other sites

So reading faq is not enough. You tried simplespy¿ Inspect.exe? Au3inf?

So you made a base program that gives error? You have the hwnd and tree hierarchy of your datatbl.

Reread this thread and think about us as poor readers willing to help but without details no help can be given. 

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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