设置文本限制值
#include <GuiEdit.au3>
_GUICtrlEdit_SetLimitText($hWnd, $iLimit)
| $hWnd | 控件的控件ID/句柄 | 
| $iLimit | 用户可以输入的最大 TCHAR 数 | 
#include <GuiEdit.au3>
#include <GUIConstantsEx.au3>
$Debug_Ed = False ; Check ClassName being passed to Edit functions, set to True and use a handle to another control to see it work
_Main()
Func _Main()
    Local $hEdit
    ; 创建 GUI
    GUICreate("Edit Set Limit Text", 400, 300)
    $hEdit = GUICtrlCreateEdit("This is a test" & @CRLF & "Another Line", 2, 2, 394, 268)
    GUISetState()
    MsgBox(4160, "信息", "Text Limit: " & _GUICtrlEdit_GetLimitText($hEdit))
    MsgBox(4160, "信息", "Setting Text Limit")
    _GUICtrlEdit_SetLimitText($hEdit, 64000)
    MsgBox(4160, "信息", "Text Limit: " & _GUICtrlEdit_GetLimitText($hEdit))
    ; 循环直到用户退出
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main