Jump to content
Sign in to follow this  
JesusIsKing

index of listbox

Recommended Posts

how do i get it? because im doing a _GUICtrlListGetText and I don't know how to find the index of the listbox

I would suggest you get the latest Beta first... all the _GuiCtrlList* functions have been changed to _GUICtrlListBox_* in AutoIt 3.2.10.0 (I think)

Once you do that look for _GUICtrlListBox_GetText... To get the index I think you'll have to go through the whole list box (use a for next loop) and check the text in each one.

Share this post


Link to post
Share on other sites

Number of ways.

_GUICtrlListBox_GetAnchorIndex

_GUICtrlListBox_GetCaretIndex

_GUICtrlListBox_GetCurSel

And some imagination you can figure out a few other ways.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  

×
×
  • Create New...