Jump to content

Recommended Posts

Posted

I have a list box:

 
$Results = GUICtrlCreateList("", 8, 56, 209, 448)

and I have passed an array to it so I have a series of results.

I'm trying to figure out how to get the value of the selected (highlighted) result.

When I only have a single value in the results, this works

MsgBox(0,"",GUICtrlRead($Results))

but when I have multiple values in the results, nothing seems to happen. What am I missing here?

Posted (edited)

Have a look at

_GUICtrlListBox_GetSelItemsText

Returns an array with the following format:
    [0] - Total items in array
    [1] - Text of the selected item
    [2] - Text of the selected item
    [n] - Text of the selected item

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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
  • Recently Browsing   0 members

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