View Single Post
09/11/14, 02:57 PM   #8
Fyrakin
 
Fyrakin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 129
Code:
--Buffer preparation
if (not _G["YOUR_BUFFER_WINDOW_NAME"]) then
	WINDOW_MANAGER:CreateTopLevelWindow("YOUR_BUFFER_WINDOW_NAME")
end
if (not _G["YOUR_BUFFER"]) then
	WINDOW_MANAGER:CreateControlFromVirtual("YOUR_BUFFER", _G["YOUR_BUFFER_WINDOW_NAME"], "ZO_DefaultEditMultiLineForBackdrop")
end
_G["YOUR_BUFFER"]:SetAlpha(0) -- make it transparent
_G["YOUR_BUFFER"]:SetCopyEnabled(true)
_G["YOUR_BUFFER"]:SetMaxInputChars(1000)
_G["YOUR_BUFFER"]:SetMouseEnabled(false)


-- Specific commands to place somethig to clipboard
_G["YOUR_BUFFER"]:SetText("Here is something for the clipboard listener")
_G["YOUR_BUFFER"]:CopyAllTextToClipboard() -- This is it.
  Reply With Quote