I only want the selected items. I'm I doing something wrong or is this not possible for some controls?
Code: Select all
ControlGet, SelectedItems, List, Selected, Listbox1, jb search
msgbox, %SelectedItems%
Loop, Parse, SelectedItems, `n ; Rows are delimited by linefeeds (`n).
{
RowNumber := A_Index
Loop, Parse, A_LoopField, %A_Tab% ; Fields (columns) in each row are delimited by tabs (A_Tab).
MsgBox Row #%RowNumber% Col #%A_Index% is %A_LoopField%.
}