Radu Posted April 13, 2010 Share Posted April 13, 2010 Greetings! Dragging multiple files on a edit or input control is easy and clear from help. But when I try to use this on buttons I can have info only about one file. What I want is to have a little window with just one huge button: when user drags some files here, some action to be on that files. But I cannot do it. I do not know how to get the files list (while on a input file is easy). The code below show how easy is to have the file list when using an input (just GuiCtrlRead($input)). Please help me to have the list just using the button. Thank you! #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> Local $msg GUICreate("My Program", 320, 320, -1, -1, -1, $WS_EX_ACCEPTFILES) $button=GUICtrlCreateButton("drag here",10,10,300,140) GUICtrlSetState(-1, $GUI_DROPACCEPTED) $input = GUICtrlCreateInput("", 10, 160,300,140) GUICtrlSetState(-1, $GUI_DROPACCEPTED) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_DROPPED Then MsgBox(0,"info","(" & @GUI_DragFile & ") " & GuiCtrlRead($input)) ConsoleWrite("ID: " & @GUI_DragId & " File: " & @GUI_DragFile & " Drop: " & @GUI_DropId & @CRLF) EndIf If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() I just love AutoIt. But this do not help me enough to know it. I need this forums also ;). Link to comment Share on other sites More sharing options...
Radu Posted April 15, 2010 Author Share Posted April 15, 2010 I dare to ask: no idea? Or I did not explain clear my issue? Greetings! I just love AutoIt. But this do not help me enough to know it. I need this forums also ;). Link to comment Share on other sites More sharing options...
Lazycat Posted April 15, 2010 Share Posted April 15, 2010 If you would search, you will find at least few threads with similar code. For example mine thread. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Radu Posted April 15, 2010 Author Share Posted April 15, 2010 First: Thank you! I will check it right now to see if it is anwers to my need. Secondly: I really hate that supposition when someone asks here something, that for sure he did not search previously. This may be the case in 90% of posts, but not in 100%. Yet, thank you again. I've dig the forum for something like that, but I did not find it. You enlighted me. A good day to everyone. I just love AutoIt. But this do not help me enough to know it. I need this forums also ;). Link to comment Share on other sites More sharing options...
Lazycat Posted April 15, 2010 Share Posted April 15, 2010 Secondly: I really hate that supposition when someone asks here something, that for sure he did not search previously.You know, too many users even not try to do the search. Sorry for wrong assumption. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now