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

[ASK] File Click and Drag

$
0
0
Dear fellow members,

I would like to create a script that allow user to click and drag multiple files into it and then click a button to process those files. It also allow user to delete particular lines from that list.

What I have now is only allow user to click and drag SINGLE FILE hence doesn't allow user to delete particular lines/file list from the list.

Any suggestions (and maybe example) would be very appreciated :)

[ autoit ]         
 #cs ----------------------------------------------------------------------------      ;Original Author: enzo_      ;Linguagem: AutoIt      ;Função: Drag and Drop     #ce ----------------------------------------------------------------------------     #include <EditConstants.au3>     #include <GUIConstantsEx.au3>     #include <StaticConstants.au3>     #include <WindowsConstants.au3>     $Title = "Func Drag File and Drop"     $Form1 = GUICreate($Title, 256, 53, -1, -1,-1, $WS_EX_ACCEPTFILES)     GUISetOnEvent($GUI_EVENT_DROPPED, "Drag")     WinSetOnTop($Title, "", 1)     $Input1 = GUICtrlCreateInput("[ ... ]", 8, 24, 241, 21)     GUICtrlSetState(-1, $GUI_DROPACCEPTED)     $Label1 = GUICtrlCreateLabel("Click and Drag File here:", 8, 8, 118, 16)     GUISetState(@SW_SHOW)     While 1             $nMsg = GUIGetMsg()             Switch $nMsg                     Case $GUI_EVENT_CLOSE                         Exit                     Case $Input1                         Drag()             EndSwitch     WEnd     Func Drag()      MsgBox(0,0,"ID: "&@GUI_DRAGID & " File: "&@GUI_DRAGFILE &" Drop: "&@GUI_DROPID&@CRLF)     EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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