举报
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form = GUICreate("窗口中加入浏览按钮", 367, 56, 192, 124) $Input = GUICtrlCreateInput("", 16, 16, 257, 21) $Button = GUICtrlCreateButton("浏览", 280, 16, 65, 25, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button $var = FileSelectFolder("选择一个文件夹.", "") GUICtrlSetData($Input, $var) EndSwitch WEnd
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-25 13:08 , Processed in 0.180876 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.