Thread Tools Display Modes
11/24/16, 04:59 PM   #1
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
Output to chat input

Is it possible for an addon to output something to the chat input? I don't want it to send it, just to place it in the text entering input.
  Reply With Quote
11/25/16, 03:07 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Lua Code:
  1. CHAT_SYSTEM.textEntry:Open(message)
  Reply With Quote
11/25/16, 09:58 PM   #3
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
Thanks, that's exactly what I needed. By any chance is there something that allows you to specify the caret's position or to have it at the beginning instead of end?
  Reply With Quote
11/26/16, 04:02 AM   #4
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Originally Posted by Rhyono View Post
Thanks, that's exactly what I needed. By any chance is there something that allows you to specify the caret's position or to have it at the beginning instead of end?
Lua Code:
  1. CHAT_SYSTEM.textEntry:SetCursorPosition(position)

zgoo and other tools are your friends..
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Output to chat input

Thread Tools
Display Modes

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