I was trying to build a *customizable* slash-cmd library. A place where users can store (exceute) and call some useful slash-cmd.
I recently tried:
Code:
local myCommand = "/abs" -- test
if (not ChatFrameEditBox:IsVisible()) then
ChatFrame_OpenChat(myCommand );
else
ChatFrameEditBox:SetText(myCommand );
end;
ChatEdit_ParseText(ChatFrameEditBox,0);
ChatEdit_ParseText(ChatFrame1.editBox,0);
ChatEdit_OnEnterPressed();
but it returns me a framexml error