[WEB] How do I set clipboard text?

Get help using Construct 2

Post » Mon Nov 24, 2014 10:14 pm

I need to put some text into clipboard in my WEB APPLICATION (IN BROWSER, NOT A PC)
I searched on the forum for a bit and found plugin which allows you to read text from clipboard but not write it there.
Last edited by Waltan on Tue Nov 25, 2014 5:45 pm, edited 1 time in total.
B
39
S
17
G
6
Posts: 238
Reputation: 7,985

Post » Tue Nov 25, 2014 2:39 am

The nodeWebkit plugin can do that.
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Tue Nov 25, 2014 2:41 pm

R0J0hound wrote:The nodeWebkit plugin can do that.

Doesn't work for me :(
Image
.capx
B
39
S
17
G
6
Posts: 238
Reputation: 7,985

Post » Tue Nov 25, 2014 3:23 pm

Hi @Vladoss I thought the nodeWebkit plugin was supposed to do handle that too.
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Tue Nov 25, 2014 4:31 pm

hundredfold wrote:Hi @Vladoss I thought the nodeWebkit plugin was supposed to do handle that too.

Look at my previous post
B
39
S
17
G
6
Posts: 238
Reputation: 7,985

Post » Tue Nov 25, 2014 5:39 pm

It only works if you preview or export with node-webkit.
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Tue Nov 25, 2014 5:43 pm

R0J0hound wrote:It only works if you preview or export with node-webkit.

It doesn't work in a preview!

Then, if it works only in Node-Webkit export, why you advice me that? I pointed out that I need it to work in HTML5 application (in BROWSER)
B
39
S
17
G
6
Posts: 238
Reputation: 7,985

Post » Tue Nov 25, 2014 6:06 pm

It works in node webkit preview. That said you can't really set the clipboard from just the browser and JavaScript as it's considered a security risk.

A google search on the subject yielded this:
http://stackoverflow.com/questions/4002 ... javascript
It looks to be a ugly task to do.
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 45 guests