Jump to content
Sign in to follow this  

Drag-drop link in to a list

Recommended Posts

Im working a simple download manager right now, that use WGET as a machine.

Till now i just copy the link from the clipboard.

It will be nice if i can drag URL from browser and drop it on the list of my app

Please help me.... :D

Edited by xix

Share this post

Link to post
Share on other sites

From the GUICtrlCreateInput example in the helpfile. The top input should accept files...

#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)
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()
           Case $msg = $btn

MsgBox (4096, "drag drop file", GUICtrlRead($file))

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...