How do I copy to clipboard using Html5? NW.js not works

Get help using Construct 2

Post » Sat Jul 18, 2015 4:28 pm

I can set the clipboard using NW.js for win/mac/linux but not work in browsers.

Is there any way to set the clipboard on HTML5 ?

I want that when a button is clicked set the clipboard from elements i want like:

Browser.URL&"/?shadercode="&ShaderCode.Text

That give:

http:// websomething/?shadercode=4|2|3|1.25|0.25|1.5|0.75|1.2|1.2|-1.2|1.6|0.25|1.25|16|0.5|0.5|1.5|1.5|1|1|3|6|1.5|4|0|3

With that you can share your creation inside a browser.

I thought the plugin Browser had this option but not :S .
Last edited by matriax on Sat Jul 18, 2015 4:42 pm, edited 1 time in total.
B
26
S
10
G
3
Posts: 584
Reputation: 4,595

Post » Sat Jul 18, 2015 4:36 pm

you could always set a the text of a text-box object to : Browser.URL&"/?shadercode="&ShaderCode.Text

The user would than be able to select and copy the text himself..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jul 18, 2015 4:43 pm

LittleStain wrote:you could always set a the text of a text-box object to : Browser.URL&"/?shadercode="&ShaderCode.Text

The user would than be able to select and copy the text himself..


Yes, is already what i have :P

So, there is no option to get the link in the clipboard in html5? :(
B
26
S
10
G
3
Posts: 584
Reputation: 4,595


Return to How do I....?

Who is online

Users browsing this forum: banquetburger, Google [Bot] and 20 guests