Jump to content
Sign in to follow this  
Davide

listbox System.Collections.SortedList

Recommended Posts

Davide

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 by Davide

Share this post


Link to post
Share on other sites
DarkMatter

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]

Share this post


Link to post
Share on other sites
Davide

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.

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
Sign in to follow this  

×

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.