function str's int hwnd=id(5 "DlG") if (SendMessage(hwnd EM_GETLINECOUNT 0 0))>100 ,SendMessage(hwnd EM_SETSEL 0 (SendMessage(hwnd EM_LINEINDEX 1 0))) ,SendMessage(hwnd EM_REPLACESEL 0 0) s+"[]" SendMessage(hwnd EM_SETSEL -2 -2) SendMessage(hwnd EM_REPLACESEL 0 s)