flyingboz Posted February 7, 2005 Posted February 7, 2005 I have been unable to find a way to handle a drag and drop operation of multiple files. Found no references in docs / search. Possible or no? If possible, what am I missing? I am able to handle files one at a time, but would like the add'l ease of use that supporting the shift- or ctrl- select would bring. Thanks! Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
therks Posted February 7, 2005 Posted February 7, 2005 This might be offtopic, but you know what I think would be cool? If drag/drop operations were handled differently. Like maybe have every object able to be dropped on, or have it so you can just drop on the background of the GUI, and then we can make our own handlers. That way we could have things like dropping a file on the window, and then have the window load that file instead of just pasting text into an edit. ... Just my misplaced two cents. My AutoIt Stuff | My Github
flyingboz Posted February 8, 2005 Author Posted February 8, 2005 I'd still like to know if handling multiple files is possible... Congratulations to the Au3 development team on the new release! Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
elieleroy2002 Posted February 8, 2005 Posted February 8, 2005 I'd still like to know if handling multiple files is possible... Congratulations to the Au3 development team on the new release!<{POST_SNAPBACK}>Try this :Global $varGlobal $mypathGlobal $multi_fileGlobal $thepathGlobal $nbGlobal $list$var = FileOpenDialog("Open", "", "Texte file (*.txt)", 1 + 4 )If @error Then MsgBox(262144 + 16,"Programme QUIT","No file select", 30) ExitEndifIf StringInStr($var,"|") Then $var = StringSplit( $var, "|") $mypath = $var[1] & "\" $multi_file = 1Else $thepath = StringSplit($var,"\") For $nb = 1 to ($thepath[0]-1) $mypath = $mypath & $thepath[$nb] & "\" Next $multi_file = 0EndIfMsgBox(0, "The path is", $mypath, 30)If $multi_file Then For $nb = 2 to $var[0] $list = $list & $mypath & $var[$nb] & @CRLF Next MsgBox(0, "Files selected are", $list, 30)Else MsgBox(0, "File selected is", $var, 30)EndIfMay be this can help you.
flyingboz Posted February 9, 2005 Author Posted February 9, 2005 Thanks for the reply. I know that FileOpenDialog() can support it -- I'm specifically asking about the GUI drag/drop capability allowed by $GUI_ACCEPTFILES -- Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
zcoacoaz Posted February 10, 2005 Posted February 10, 2005 $GUI_ACCEPTFILESstrange... annoying... [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]
Helge Posted February 10, 2005 Posted February 10, 2005 I`m wondering about this myself, so I think I`ll join thisthread and ask : Is it possible ?!?
jpm Posted February 10, 2005 Posted February 10, 2005 I`m wondering about this myself, so I think I`ll join thisthread and ask : Is it possible ?!?<{POST_SNAPBACK}>no only on file is possible. I should have name the state $GUI_ACCEPTFILE. In fact as the main window must have the $WS_EX_ACCEPTFILES extended style. I just cut and paste too much for defining the GUI control state.
flyingboz Posted February 10, 2005 Author Posted February 10, 2005 Thanks for the resonse, jpm. It's good to know that I'm not doing something stupid. (this time.) Do you anticipate adding this functionality? An add'l line in the docs would be of use, too. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
jpm Posted February 10, 2005 Posted February 10, 2005 Thanks for the resonse, jpm. It's good to know that I'm not doing something stupid. (this time.) Do you anticipate adding this functionality?An add'l line in the docs would be of use, too.<{POST_SNAPBACK}>I need help because I cannot find easy solution to do it.So the easy answer is NO but ...
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