Thread Tools Display Modes
07-29-10, 08:56 AM   #1
Cidwel
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 23
Get specified text lines in multiline box

Hi all!

Is there a way to get the text in specified text lines in a multiline editbox?

I'm trying to find it without any result. I want to spam in chat the text written on a multiline text box in individual messages of every text line typed. is there a way to do this?

Thanks!
  Reply With Quote
07-29-10, 09:13 AM   #2
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
Why not take the whole text and split it on linebreaks, using the Lua string-library? A very basic pattern should be sufficient to achieve this.
Simply iterate over the whole text, grab a single line and build the chat-message (/2 or whatever) around it, send it, grab the next line.

edit: Those multiline-spam-messages in public channels are fubar!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Get specified text lines in multiline 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