Excalibur Posted June 15, 2006 Share Posted June 15, 2006 Does AutoIt support Drag & Drop at all in its GUI Interface? Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein Link to comment Share on other sites More sharing options...
GaryFrost Posted June 15, 2006 Share Posted June 15, 2006 a few things to look at in the help @GUI_DragID Drag GUI Control identifier. Only valid in an event Function. @GUI_DragFile Filename of the file being dropped. Only valid in an event Function. @GUI_DropID Drop GUI Control identifier. Only valid in an event Function. example from the help file #include <GUIConstants.au3> GUICreate(" My GUI input acceptfile", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018); WS_EX_ACCEPTFILES $file = GUICtrlCreateInput ( "", 10, 5, 300, 20) GUICtrlSetState(-1,$GUI_DROPACCEPTED) GUICtrlCreateInput ("", 10, 35, 300, 20) ; will not accept drag&drop files $btn = GUICtrlCreateButton ("Ok", 40, 75, 60, 20) GUISetState () $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn exitloop EndSelect Wend MsgBox (4096, "drag drop file", GUICtrlRead($file)) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Excalibur Posted June 15, 2006 Author Share Posted June 15, 2006 Thank you, I'll try that. Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein Link to comment Share on other sites More sharing options...
Excalibur Posted June 15, 2006 Author Share Posted June 15, 2006 Ok, I got the drag and drop working... but what I was wanting is something more like how MSN does it, where you can drag and drop a file in the text box and it starts the file sending process. Is there any way I can grab the file drag and drop event? or is the only way to handle it the way AutoIt does it currently. Is there any means of handleig the drag and drop event via a custom function? Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein 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