Ok what i bascially want to do is to make a slash command that will prefix a chat msg, but not complete it. So for example By typing
Code:
/mylua this is the start of my text you finish it
into the chat window in wow, it will in turn type in a message into the chat window "this is the start of my text you finish it" but not enter it just type it into the chat window and let you then finish it off however you see fit. Basically i can then use this as a macro for any command i want.
I have managed to make this work with a key binding but just have no idea how i would implement a slash command and have the slash command use the arguments in the correct way. Any help at all would be appreciated.
My code that works with key binding so far
Code:
function ChatMacros()
DEFAULT_CHAT_FRAME.editBox:Show();
DEFAULT_CHAT_FRAME.editBox.setText = 1;
DEFAULT_CHAT_FRAME.editBox.text = "/g Hi, this is the start of the message now u end it...";
end
-------------------- Bindings --------------------
BINDING_HEADER_CHATMACROS = "ReeceX Chat Macro";
BINDING_NAME_CHATMACROS_GENERAL = "Testbinding";
--------------------------------------------------