Thread Tools Display Modes
09-15-22, 03:58 PM   #1
hasnogaems
A Flamescale Wyrmkin
 
hasnogaems's Avatar
Join Date: Apr 2016
Posts: 109
Copy output to clipboard

Let say I have a slash command
Code:
/tsm sources
Can I feed it to some function so it put output in the clipboard instead of chat?
  Reply With Quote
09-15-22, 04:13 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
The only way to do it is to use an editbox and set it's text to the desired output.

The user can then select the text (if you haven't done so automatically) and use CTRL-C to copy.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Copy output to clipboard


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