这样?
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("读取Readme", 292, 404, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 16, 8, 257, 321)
$Button1 = GUICtrlCreateButton("读取", 104, 360, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$a = RegRead("HKLM\SOFTWARE\AutoIt v3\AutoIt", "InstallDir")
$a = FileRead($a & "\ReadMe.txt")
GUICtrlSetData($Edit1, $a)
EndSwitch
WEnd
|