#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
GUICreate(" My GUI input acceptfile", 364, 200, @DesktopWidth / 2, @DesktopHeight / 2, -1, $WS_EX_ACCEPTFILES); WS_EX_ACCEPTFILES
$Edit1 = GUICtrlCreateEdit("", 16, 16, 249, 160, 0)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
GUICtrlSetData(-1, "Edit1")
$Button1 = GUICtrlCreateButton("确定(&O)", 286, 11, 75, 25, 0)
$Button2 = GUICtrlCreateButton("取消(&C)", 285, 44, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Edit1
MsgBox(0,"","")
EndSwitch
WEnd
这个是 把任何文件 和文件夹拖放到Edit里面
能不能 马上Case $Edit1 作出反应啊 貌似好像不行
[ 本帖最后由 lele9013 于 2008-8-14 02:09 编辑 ] |