Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Read value from ListView on mouse click

$
0
0
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.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>