Thread Tools Display Modes
11-29-10, 04:03 AM   #1
Sideshow
A Flamescale Wyrmkin
 
Sideshow's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 103
Opening editbox in chat

Hello

I would like a lua function that will open the edit box of the chat and
automatically type "/tdps whisper <name>"
I don't want to make another frame just to enter a name ...

Any idea how to do it, if possible at all?

Thanks
  Reply With Quote
11-29-10, 04:04 AM   #2
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Originally Posted by Sideshow View Post
Hello

I would like a lua function that will open the edit box of the chat and
automatically type "/tdps whisper <name>"
I don't want to make another frame just to enter a name ...

Any idea how to do it, if possible at all?

Thanks
Check out SEND_CHAT_MESSAGE
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
11-29-10, 04:05 AM   #3
Sideshow
A Flamescale Wyrmkin
 
Sideshow's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 103
That was pretty quick But that's not what I need. I need to explain myself better.
The user needs to be able to manually change "<name>"
  Reply With Quote
11-29-10, 04:16 AM   #4
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Originally Posted by Sideshow View Post
That was pretty quick But that's not what I need. I need to explain myself better.
The user needs to be able to manually change "<name>"
/script SendChatMessage("Hello Bob!", "WHISPER", "Common", "Bob");
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
11-29-10, 04:16 AM   #5
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
I mean it depends in the situation you are going to use it in. If you gave a bit more info on the way you intend to use it, I may have a better idea.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
11-29-10, 04:23 AM   #6
Sideshow
A Flamescale Wyrmkin
 
Sideshow's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 103
I know how to send a message with lua, that's not the problem.

I just want to know how to open the editbox and automatically put some text in it.
This, instead of making another dialog box to ask for user input...

Context: whispering damage report to another user via a command, the name of the user is variable.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Opening editbox in chat


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