How do I copy to clipboard

Get help using Construct 2

Post » Fri May 09, 2014 3:53 pm

Hello,

How can I copy a text to the clipboard?

Thanks.
B
6
Posts: 46
Reputation: 342

Post » Fri May 09, 2014 6:30 pm

Any help please?
B
6
Posts: 46
Reputation: 342

Post » Fri May 09, 2014 6:41 pm

Can you be more specific? What is it that you are trying to copy? The characters, the Text Object, the event that set's the text content..?
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Fri May 09, 2014 6:53 pm

I want to copy the text to clipboard of a "Text" or "TextBox" object.
B
6
Posts: 46
Reputation: 342

Post » Fri May 09, 2014 7:43 pm

You mean at real time or on the editor??? As far as I know, clipboard is a OS function and applies to all programs, you can copy a text body from (e.g.) word, an internet browser, photoshop or whatever to any other software, including construct.

If you mean that you want to get the contents of a Text or TextBox object at run time, then use the "get the object's text" action.

See this example:
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Fri May 09, 2014 8:43 pm

@Snowmane
You can set the clipboard with the nodewebkit object if you export or preview with nodewebkit. There isn't a way to set the clipboard otherwise. You could look through the platform specific plugins and see if any others have clipboard actions but I imagine not. The clipboard is mainly a win/linux/mac thing.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk, lordsas and 77 guests