Tag something to clipboard with wick?

Ok… I’m wondering how do u tag to clipboard something in wick.

What I’m really looking for is someway to copy a text without using ctrl+c.

You can’t highlight text objects in wick to copy paste them, and I don’t want to use the text box for this because the data that I want to copy is gonna be somewhat big. I’m planning on having a set of data be copy- pastable so that when I paste it in my project, the computer loads the users progress.

I still didn’t make the project, but I just wanna see if this is possible before starting to make some long system.

If this is not possible in wick, just let me know and I’ll look for a different method.

Thanks!

you want the player to be able to paste in the app/game a string that contain his progress?
a string that he previously saved on his computer?
seems to me a real security threat
maybe use of cookies would be slightly better

This sounds like you’re using localStorage- so you have a really large chunk of data that you want to load in at the beginning, and you want to be able to store it as a text object (or some other kind of wick object?) I just want to make sure I’m not misunderstanding.

Yell, I’m trying to really make a “copy text” button so the player can copy the data and paste it back in the site.

But I will have it saved on the local storage as well to make life easier

I think maybe this is what you meant…or at least it might give you some ideas to work from. (Sorry if I’m way off, I think it’s just hard for me to visualize projects without seeing them)
copy-text-to-clipboard.wick (1.8 KB)

Oops, I just re-read the part where you said you didn’t want to use a textbox. But you could use a similar method to copy a string variable to the clipboard instead:
copy-var-to-clipboard.wick (1.8 KB)

1 Like

That’s exactly the type of magic I needed!

Thank you :D

1 Like

Glad to hear it! :grinning: