#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 556, 294, 193, 125)
$Input1 = GUICtrlCreateInput("", 80, 72, 297, 21)
$Button1 = GUICtrlCreateButton("open", 416, 64, 81, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
$folder=FileOpenDialog("查找","C:Windows","可执行文件(*.exe)")
If Not @error Then
GUICtrlSetData($Input1, $folder)
EndIf
EndSwitch
WEnd |