Jewtus Posted August 21, 2014 Share Posted August 21, 2014 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? Link to comment Share on other sites More sharing options...
MikahS Posted August 21, 2014 Share Posted August 21, 2014 (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 August 21, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now