Could someone run this code in beta 87 and confirm the results I am getting? ListView is multi-select so select a few items before clicking on Test. #include <GUIConstants.au3>
Dim $lviTestItems[10]
GUICreate("MyGUI", 200, 400)
$lvTest = GUICtrlCreateListView("Header1", 20, 20, 160, 320, BitOR($LVS_SHOWSELALWAYS, $LVS_REPORT))
For $i = 0 To 9
$lviTestItems[$i] = GUICtrlCreateListViewItem("Test " & $i, $lvTest)
Next
$btnTest = GUICtrlCreateButton("Test", 20, 360, 80, 25)
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $btnTest
For $i = 0 To 9
$aItem = GUICtrlRead($lviTestItems[$i], 1)
ConsoleWrite($aItem[0] & "," & $aItem[1] & @LF)
Next
EndSelect
WEnd
GUIDelete() This is what I am getting: Test 0,-1
Test 1,-1
Test 2,-1
Test 3,-1
Test 4,-1
Test 5,-1
Test 6,-1
Test 7,-1
Test 8,-1
Test 9,-1 According to the help file: From the results I am getting, 2 things are wrong. Firstly, ListViewItem needs to be added to the default table as follows: Also, change the ListViewItem entry in the Remarks section to say The text of the ListViewItem Second, the state value is always -1 regardless of whether the item is selected or not.