Davide Posted April 8, 2008 Share Posted April 8, 2008 (edited) Hi all, I am trying to get the values inside a list box. When I try to use the get text function on the list box, I got back the string "System.Collections.SortedList" local $controlNN = "WindowsForms10.SysListView32.app.0.378734a1" local $hlist = ControlGetHandle( $appWinTitle, "", $controlNN ) $list = _Listbox_GetText($hlist, 0) and now $list is just the string ""System.Collections.SortedList"" I guess that the list box is a collection of elements, is there a way to loop trough it ? Edited April 8, 2008 by Davide Link to comment Share on other sites More sharing options...
DarkMatter Posted April 8, 2008 Share Posted April 8, 2008 Can you post your _Listbox_GetText function? It appears you are trying to get text from a list box within a .NET application. Within .NET list box items are a Collection. [sub]Quantum mechanics: The dreams stuff is made of[/sub] Link to comment Share on other sites More sharing options...
Davide Posted April 8, 2008 Author Share Posted April 8, 2008 Basically I am just trying to get something from the listbox$my_list = _Listbox_GetText($hlist, $idx))I guess that this approach is wrong since I should get a list of collection. GetText is giving me back a string. I checked on the listbox functions documentation and I have not find anything more suitable.The application is writtend in .NET and I would like to know if it would be possible to retrieve a collection from the listbox and assign it to a variable and then loop trought it.Actually I do not know how to use Collections in Autoit, I will guess I will find some source code and I am optimistic about it.Thank you in advance.Can you post your _Listbox_GetText function?It appears you are trying to get text from a list box within a .NET application. Within .NET list box items are a Collection. 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