#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 180, 140, 192, 124)
$Input1 = GUICtrlCreateEdit("" & @CRLF & '', 16, 24, 150, 30, $ES_MULTILINE + 0x80)
$butmc1 = GUICtrlCreateButton("写入1", 30, 70, 55, 25)
$butmc2 = GUICtrlCreateButton("写入2", 90, 70, 55, 25)
$butmc3 = GUICtrlCreateButton("读取", 90, 100, 55, 25)
$hangtext1 = ''
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $butmc1
$hangtext1 = ControlCommand("Form1", "", $Input1, "GetLine", 2)
GUICtrlSetData($Input1, '' & @CRLF & "abcdefghijklmn")
Case $butmc2
$hangtext1 = ControlCommand("Form1", "", $Input1, "GetLine", 2)
GUICtrlSetData($Input1, '' & @CRLF & "123+++456")
Case $butmc3
MsgBox(Default, Default, GUICtrlRead($Input1))
EndSwitch
WEnd
你自己看下是不是这个意思 |