ronald82 Posted January 7, 2020 Share Posted January 7, 2020 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 Link to comment Share on other sites More sharing options...
junkew Posted January 7, 2020 Share Posted January 7, 2020 Yes you can. Read faq31 first and supply more info FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
ronald82 Posted January 8, 2020 Author Share Posted January 8, 2020 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 Link to comment Share on other sites More sharing options...
ronald82 Posted January 8, 2020 Author Share Posted January 8, 2020 any help please ? I tried to read the FAQ31 Link to comment Share on other sites More sharing options...
Nine Posted January 8, 2020 Share Posted January 8, 2020 We do not have enough information to really help you. Please provide a detailed description of the data source /application and what you are trying to achieve... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
junkew Posted January 8, 2020 Share Posted January 8, 2020 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. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
ronald82 Posted January 9, 2020 Author Share Posted January 9, 2020 yes tried all the tool mentioned and what I can get are: ControlType: UIA_PaneControlTypeId ExStyle: 0x00000101 Handle: 0x00000000000D0BA8 >>>> Control <<<< Class: DataTbl Instance: 1ClassnameNN: DataTbl1 Name: Advanced (Class): [CLASS:DataTbl; INSTANCE:1] Link to comment Share on other sites More sharing options...
seadoggie01 Posted January 9, 2020 Share Posted January 9, 2020 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. junkew 1 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 functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
junkew Posted January 9, 2020 Share Posted January 9, 2020 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 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
ronald82 Posted January 12, 2020 Author Share Posted January 12, 2020 Hi, So maybe to give more details SWAPY managed to get the contents: Access names : [] Class : ListBoxClientRects : [<RECT L0, T0, R59, B13>]ContextHelpID : 0ControlCount : 0ControlID : 8ExStyle : 512 Fonts : [<LOGFONTW 'MS Sans Serif' -11>]FriendlyClassName : ListBoxhandle : 2034008IsEnabled : TrueIsUnicode : TrueIsVisible : FalseMenuItems : [] 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 More sharing options...
junkew Posted January 12, 2020 Share Posted January 12, 2020 Yes you can just test all spying tools mentioned not only one. Check with simplespy, jabsimplespy, inspect.exe and uiaspy. Its just not a simple yes no and no spy tool will give you all information. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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