Jump to content

Check any input when drag !


Recommended Posts

Hello

i need check if drag file on input 1 or input 2

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form = GUICreate("", 300,50, -1, -1,-1, $WS_EX_ACCEPTFILES)
$Input1 = GUICtrlCreateInput("1", 20, 10, 120, 30,1)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)

$Input2 = GUICtrlCreateInput("2", 160, 10, 120, 30,1)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)

GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg

        Case $GUI_EVENT_DROPPED

;~          If Drag on input 1 Then
;~              ......
;~          ElseIf Drag on input 2 Then
;~              ......
;~          EndIf

        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

 

Edited by ahmeddzcom
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...