Thread Tools Display Modes
10-25-05, 08:20 AM   #1
ReeceX
A Defias Bandit
Join Date: Oct 2005
Posts: 3
Editable prefixed text message

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";

--------------------------------------------------
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Editable prefixed text message


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off