Jump to content

Recommended Posts

Posted
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Test", 535, 520, 919, 435,$WS_EX_ACCEPTFILES)
$Input = GUICtrlCreateEdit("", 8, 8, 520, 425)
GUICtrlSetState($Input, $GUI_DROPACCEPTED) ; Enable drag and drop
GUICtrlSetData($Input, "")
$Close = GUICtrlCreateButton("Close", 448, 448, 75, 25)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    Case $Close
      Exit
    Case $GUI_EVENT_DROPPED ; File dropped on input box
      GUICtrlSetData($Input,@GUI_DragFile)
    EndSwitch
WEnd

 

 

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
×
×
  • Create New...