Copying message text into clipboard instead of stdout

Discussion of Lua and LuaWML support, development, and ideas.

Moderators: Forum Moderators, Developers

Post Reply
toclipboard
Posts: 17
Joined: February 11th, 2012, 2:14 pm

Copying message text into clipboard instead of stdout

Post by toclipboard » February 14th, 2012, 4:44 pm

How can we copy the messages into the clipboard instead of into stdout.txt using lua?

See also http://forums.wesnoth.org/viewtopic.php ... 74#p520741
See the main idea http://forums.wesnoth.org/viewtopic.php ... 74#p520726

User avatar
Elvish_Hunter
Forum Moderator
Posts: 1395
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

Re: Copying message text into clipboard instead of stdout

Post by Elvish_Hunter » February 15th, 2012, 9:46 am

toclipboard wrote:How can we copy the messages into the clipboard instead of into stdout.txt using lua?
You can't. Lua does not have any function to handle the clipboard.
Current maintainer of these add-ons:
1.14: The Sojournings of Grog, A Rough Life, The White Troll (co-author), Wesnoth Lua Pack
1.12: Children of Dragons

toclipboard
Posts: 17
Joined: February 11th, 2012, 2:14 pm

Re: Copying message text into clipboard instead of stdout

Post by toclipboard » February 15th, 2012, 9:55 am

Would not it be possible to add a SetClipboard feature into Wesnoth?

Post Reply