Jump to content

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.

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...