int hwnd = id(3 win("Dialog" "#32770")) int i int count=LB_GetCount(hwnd) for i 0 count ,if(SendMessage(hwnd LB_GETSEL i 0) = 1) out i