dazza Posted April 11, 2008 Posted April 11, 2008 A basic question from a very basic fellow. I need to know the last item in a listbox. And knowing which is selected would be useful. ControlGetText("window name", "", "ListBox1") doesn't work, and the Function links give no clue. I don't have the _listbox_ modules on our builds. Thanking you in advance
Zedna Posted April 11, 2008 Posted April 11, 2008 (edited) Look at ControlCommand()GetCurrentSelectionEDIT: Also look at al _GUICtrlListBox_xxx() UDF functions.It's in the helpfile at User Defined Functions/GUIListBox management sectionfor example _GUICtrlListBox_GetCount()You probably will need also ControlGetHandle() Edited April 11, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
dazza Posted April 11, 2008 Author Posted April 11, 2008 Thanks for speedy response. The ControlCommand... GetCurrentSelection returns a zero despite the listbox having a line selected. And how do I navigate to the 'User Defined Functions/GUIListBox management section' from the www.autoitscript.com site?
Zedna Posted April 11, 2008 Posted April 11, 2008 Thanks for speedy response.The ControlCommand... GetCurrentSelection returns a zero despite the listbox having a line selected.And how do I navigate to the 'User Defined Functions/GUIListBox management section' from the www.autoitscript.com site?Downloadhttp://www.autoitscript.com/autoit3/files/....2.10.0-sfx.exeorhttp://www.autoitscript.com/autoit3/files/....10.0-setup.exeand look at "C:\Program Files\AutoIt3\autoit.chm" Resources UDF ResourcesEx UDF AutoIt Forum Search
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