I have a simple drag and drop script, i can drop files to a listview, and make them appear in it, but i wonder if its possible to drop multiple files, and how would it "read" them.
[ autoit ]
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() Local $listview, $button, $item1, $item2, $item3, $item4, $msg GUICreate("listview items", 220, 200, 100, 100, -1, $WS_EX_ACCEPTFILES) $listview = GUICtrlCreateListView("col1|col2|col3 ", 10, 10, 200, 150) GUICtrlSetState(-1, $GUI_DROPACCEPTED) $item1 = GUICtrlCreateListViewItem("1|4|7", $listview) $item2 = GUICtrlCreateListViewItem("2|5|8", $listview) $item3 = GUICtrlCreateListViewItem("3|6|9", $listview) GUISetState() Do $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_DROPPED GUICtrlCreateListViewItem(@GUI_DRAGFILE&'|'&'|', $listview) EndSelect Until $msg = $GUI_EVENT_CLOSE EndFunc ;==>Example