ahmeddzcom Posted December 7, 2019 Posted December 7, 2019 (edited) 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 December 7, 2019 by ahmeddzcom
SlackerAl Posted December 7, 2019 Posted December 7, 2019 ahmeddzcom 1 Problem solving step 1: Write a simple, self-contained, running, replicator of your problem.
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