Forum Discussion
BrettSchlagel-e
10 years agoCommunity Member
Copy Text Variable to Clipboard
I need some help.
I need users to be able to click a button to copy a text variable to their clipboard, which can then be pasted in a word doc. This doesn't necessarily have to be done through a ...
JacksonHamner
10 years agoCommunity Member
Try this:
var player = GetPlayer();
var text= player.GetVar("copytext");
window.prompt("Copy to clipboard: Ctrl+C, Enter", text);
This should work!