Thread Tools Display Modes
08-08-07, 10:03 AM   #1
ss4vegeta
A Murloc Raider
 
ss4vegeta's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 8
sending chat commands through singleline edit box

i have a frame with a singleline edit box and a button

On_click function for the button
SendChatMessage("[TEXT]!", "WHISPER", "Common", "Bob");

where the word Text is i want to insert the text from the singleline edit box into an chat window by pressing the button.
  Reply With Quote
08-08-07, 10:59 AM   #2
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 2,302
Wouldn't that be something like this?

Code:
OnClick: 

ChatFrameEditBox:SetText("TEXT"); 
ChatEdit_SendText(ChatFrameEditBox);
sorry if that didn't help, I knew to LUA and I'm still learning.
__________________

Funtoo - Plan 9 - Windows 7
  Reply With Quote
08-08-07, 12:19 PM   #3
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
ss4vegeta, no offense, but it's the 3rd thread you start containing the exact same thing. Don't you think that:
- posting in your old threads would create less mess on the forum
- formulating your question a different way might give people a chance to understand it better, as quite obviously, if they haven't answered before, they won't answer more now if you post just the same
- if you don't answer people that post in your threads and prefer to start other threads, it won't make people want to answer you.

Please review the answers given in your other threads and f...ing explain your problem better! Give the whole huge total exhaustive description of the whole addon you want to make from 0 to 100%.
  Reply With Quote
08-08-07, 10:29 PM   #4
ss4vegeta
A Murloc Raider
 
ss4vegeta's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 8
sorry about the triple post but i thought i was posting the wrong forum for the question i was asking. I hope this works but here a picture to better explain what I'm trying to do.




  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » sending chat commands through singleline edit box


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