#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$U1 = IniRead(@ScriptDir&"\2.INI", "setup", "u1", "")
$U2 = IniRead(@ScriptDir&"\2.INI", "setup", "u2", "")
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=d:\桌面\form1.kxf
$Form1_1 = GUICreate("Form1", 449, 278, 389, 215,BitOR($WS_CAPTION, $WS_SYSMENU), $WS_EX_ACCEPTFILES)
$Input1 = GUICtrlCreateInput($U1, 56, 24, 265, 21)
GUICtrlSetState(-1,$GUI_ACCEPTFILES)
$Input2 = GUICtrlCreateInput($U2, 56, 64, 265, 21)
GUICtrlSetState(-1,$GUI_ACCEPTFILES)
$Label1 = GUICtrlCreateLabel("", 56, 112, 354, 81)
$Button1 = GUICtrlCreateButton("浏览1", 336, 24, 75, 25)
$Button2 = GUICtrlCreateButton("浏览2", 336, 64, 75, 25)
$Button3 = GUICtrlCreateButton("确定", 72, 224, 99, 33)
$Button4 = GUICtrlCreateButton("取消", 272, 224, 99, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
liulang1()
Case $Button2
liulang2()
Case $Button3
$1=GUICtrlRead($Input1)
$2=GUICtrlRead($Input2)
GUICtrlSetData($Label1,$1&@CRLF&$2)
Case $Button4
GUICtrlSetData($Input1,"")
GUICtrlSetData($Input2,"")
GUICtrlSetData($Label1,"")
EndSwitch
WEnd
Func liulang1();浏览1按钮,
$ll=FileSelectFolder("浏览","")
If FileExists($ll) Then
GUICtrlSetData($Input1,$ll)
EndIf
EndFunc
Func liulang2();浏览2按钮,
$ll=FileSelectFolder("浏览","")
If FileExists($ll) Then
GUICtrlSetData($Input2,$ll)
EndIf
EndFunc
读取配置文件2.ini的内容,2.ini内容为