why this code selectes wrong place after adding more than 1 smiley code ????Code:strText = Input.GetText("Input1"); cPos=GetCaretPos("Input1") selString = Input.GetSelection("Input1"); cRow=GetCaretRow("Input1") BeforCaret = String.Mid(strText, 1, cPos); AfterCaret = String.Mid(strText, cPos, -1); Input.SetText("Input1", BeforCaret..":)"..AfterCaret); Input.ScrollToLine("Input1", cRow); Input.SetSelection("Input1", cPos+3, cPos+3);
i think this is true;
Input.SetSelection("Input1", cPos+3, cPos+3);

