AutoIt
#include <GuiConstantsEx.au3> #include <File.au3> #include <Array.au3> #include <ListviewConstants.au3> #include <GuiListView.au3> GUICreate("Automation", 300, 500) $mylist = GUICtrlCreateList("", 10, 60, 280, 100) $add = GUICtrlCreateButton("Add", 10, 35, 75, 20) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $msg Case $add Local $FileList _FileReadToArray("C:\Users\Danny Tan\Desktop\test.txt", $FileList) For $i = 1 To $FileList[0] GUICtrlSetData($mylist, $FileList[$i]) Next Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd
Need some helps here,
How do i trying to read the data when i select it from the listview. i couldn't get it worked.