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 |
Quote:
|
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>" |
Quote:
|
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.
|
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. |
Code:
local eb = DEFAULT_CHAT_FRAME.editBox |
Why don't you just use slash command handler for /tdps? The SlashCmdList table is global.
SlashCmdList["<tdps index name>"]("<tdps args>") |
He only wanted a function to put in the text in the chat box and do nothing more, so here you go mate:
Code:
local function putInChatBox(name) |
Thanks a lot
|
All times are GMT -6. The time now is 02:58 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI