#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$AForm1 = GUICreate("AForm1", 336, 169, 193, 125)
$Input1 = GUICtrlCreateInput("Input1", 40, 56, 169, 21)
$Button1 = GUICtrlCreateButton("浏览", 232, 48, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg=GUIGetMsg()
Select
Case $nMsg = $Button1
GUICtrlSetData($Input1,FileOpenDialog("请选择存放图片的位置:","C:\", "图片文件(*.jpg;*.bmp)", 1 + 4 ))
IniWrite(@WindowsDir &"\logo.ini","logo","logo",GUICtrlRead($Input1))
ExitLoop
Case $nMsg= $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
logo.ini内容如下:
[logo]
logo=
[ 本帖最后由 qq342252004 于 2008-6-25 08:37 编辑 ] |