Jump to content

Recommended Posts

Posted

I've searched this forum, and tried out functions. I am trying to extract a list of numbers from a ListBox in another program. From what I've tried, I'm inclined to believe that GUI functions will *not* work. No GUI functions I have tried have been able to interact with it at all. ControlCommand works in certain ways, but for some frustrating reason there's no simple 'Get the text in occurence #' command (why is this missing?!) or even better would be a function that returns an array consisting of all the items in the ListBox.

Can anyone offer help?

Posted

I've searched this forum, and tried out functions. I am trying to extract a list of numbers from a ListBox in another program. From what I've tried, I'm inclined to believe that GUI functions will *not* work. No GUI functions I have tried have been able to interact with it at all. ControlCommand works in certain ways, but for some frustrating reason there's no simple 'Get the text in occurence #' command (why is this missing?!) or even better would be a function that returns an array consisting of all the items in the ListBox.

Can anyone offer help?

You might consider being a little more specific. What external listbox ? Use AutoIt Window Info tool to show us the control information and maybe we can help more.

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Posted (edited)

Edit: Nevermind. I figured it out. Typical, after a month of wrestling with this problem, I figure it out 5 minutes after I post about it. For anyone wondering (since this seems to be a common problem):

You must first use non-gui functions to get the handle... i.e.

ControlGetHandle("Name","text", ListBox's ID)

then use it in the _GUICtrlListXXXXXX functions. It should work fine.

Edited by Gar

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
×
×
  • Create New...