blipton Posted June 10, 2019 Share Posted June 10, 2019 According to the documentation, GUICtrlRead returns the "value selected", which through trial and error I found was the 'TEXT' of the combo box item, not its position. This was kind of surprise since I'm not passing the 'advanced' option parameter that enables the return of the text. But I've got a long list of ComboBox values ("Ch0", "Ch1", ... "Ch32") that I'd like to see which is selected without comparing strings. Is there a way for GUICtrlRead to return the position of the selected value, not its text? Link to comment Share on other sites More sharing options...
Subz Posted June 10, 2019 Share Posted June 10, 2019 Why not use the _GuiCtrlComboBox_... UDFs? For example: _GUICtrlComboBox_GetCurSel($hWnd) Link to comment Share on other sites More sharing options...
blipton Posted June 15, 2019 Author Share Posted June 15, 2019 That worked thanks!! Any thoughts why the _ functions aren't listed under the 'Related' section of the documentation? It seems the _ functions are kept completely separate! https://www.autoitscript.com/autoit3/docs/functions/GUICtrlRead.htm Link to comment Share on other sites More sharing options...
Subz Posted June 16, 2019 Share Posted June 16, 2019 The GuiCtrlCreate... functions are builtin functions based upon WIndows API, however the _Gui... functions are UDFs created by members of Autoit community. 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