Thread Tools Display Modes
08/31/14, 05:31 AM   #1
Sternentau
board director
 
Sternentau's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 17
Sending text to the clipboard

Servus Freunde,

i am searching for a way to send the value of a string variable to the clipboard directly for later use.

The only alternative i found by myself is to store the value to an edit control and calling its CopyAllTextToClipboard() function.
Unfortunately it seems that there is a limitation to about 900 charcters if i do it this way.

Anyone here with an idea?


Thanks
Sternentau
  Reply With Quote
08/31/14, 06:15 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
I think there is no other way to copy something to the clipboard automatically or at least I found no other way when I was making Chat2Clipboard.

The character limit also seems to be something we cannot work around (zgoo has the same limitation when you copy the list).

I haven't tested it myself, but I think the only way to copy more than 900 characters is to let the user copy the text by himself.
Try to call SetMaxInputChars and set it to something like 10000, add some long text and then see what happens if you call ctrl+a and ctrl+c manually.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Sending text to the 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