回复 1# silentteamo
怎么可能读不了??#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 104, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Button1 = GUICtrlCreateButton(IniRead(@ScriptDir & "\test.ini","test","test1","default"), 520, 32, 75, 25)
GUICtrlSetOnEvent(-1, "Button1Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Sleep(100)
WEnd
Func Button1Click()
$a = InputBox('','','')
If Not @error Then
IniWrite(@ScriptDir & "\test.ini","test","test1",$a)
;Sleep(100)
GUICtrlSetData($Button1, IniRead(@ScriptDir & "\test.ini","test","test1","default"))
EndIf
EndFunc
Func Form1Close()
Exit
EndFunc
|