本帖最后由 水木子 于 2009-7-18 12:09 编辑
是啊!给出部分代码吧!
你这样光说不好理解。
这里我简单写了一例子,希望能帮到你。#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("浏览", 351, 201, 302, 218)
$Button1 = GUICtrlCreateButton("浏览", 250, 80, 50, 25, $WS_GROUP)
$Input1 = GUICtrlCreateInput("", 50, 82, 200, 21)
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
|