Discuss Scratch
- Discussion Forums
- » Suggestions
- » Copy/Paste functionality for variable values
- ZsBendefy
-
Scratcher
3 posts
Copy/Paste functionality for variable values
Hello,
I think it would be very useful if the value of a variable could be copied to the clipboard.
Right now variables can be displayed with three readouts: normal, large or slider. Non of these support the selection or the direct editing of the value.
My suggestion is to create a new readout that allows the users to edit directly the value of the variable.
If this is not possible, it would also be a good improvement if there was an option in the menu of a variable to copy its value to the clipboard.

Just as information, the requirement for this functionality arose when we created a a project that ciphered the text entered by the user to different secret languages. It was easy to paste the input text using the “ask … and wait” block, but we found no way to get the calculated output out of Scratch.
I think it would be useful for other projects as well.
Thank you very much,
Zsófia Bendefy
I think it would be very useful if the value of a variable could be copied to the clipboard.
Right now variables can be displayed with three readouts: normal, large or slider. Non of these support the selection or the direct editing of the value.
My suggestion is to create a new readout that allows the users to edit directly the value of the variable.
If this is not possible, it would also be a good improvement if there was an option in the menu of a variable to copy its value to the clipboard.

Just as information, the requirement for this functionality arose when we created a a project that ciphered the text entered by the user to different secret languages. It was easy to paste the input text using the “ask … and wait” block, but we found no way to get the calculated output out of Scratch.
I think it would be useful for other projects as well.
Thank you very much,
Zsófia Bendefy
Last edited by ZsBendefy (Nov. 1, 2016 12:04:51)
- MathlyCat
-
Scratcher
1000+ posts
Copy/Paste functionality for variable values
set [copied v] to (foo)
Is setting the variable to another not a viable option, or just re-using it?
(I may not be understanding the suggestion fully
)- ZsBendefy
-
Scratcher
3 posts
Copy/Paste functionality for variable values
Hi,
No, unfortunately that doesn't give me what I want. I would like to paste the calculated value of the variable to an external application, e.g notepad/e-mail etc.
No, unfortunately that doesn't give me what I want. I would like to paste the calculated value of the variable to an external application, e.g notepad/e-mail etc.
Last edited by ZsBendefy (Nov. 1, 2016 16:05:46)
- TechEpic
-
Scratcher
100+ posts
Copy/Paste functionality for variable values
Support, though in the meantime it's worth noting you CAN copy from lists, so just do that for now.
- Sheep_maker
-
Scratcher
1000+ posts
Copy/Paste functionality for variable values
Like a text box of some sort or a list item where the value can be selected/edited on the stage?
- ZsBendefy
-
Scratcher
3 posts
Copy/Paste functionality for variable values
Yes, exactly, a text box, even if disabled would already help in this case.
I haven't tried copying the value of the variable to a list, but tricky idea, it might work, thank you!
However, it would be more elegant without it
I haven't tried copying the value of the variable to a list, but tricky idea, it might work, thank you!

However, it would be more elegant without it

- Lataliat
-
Scratcher
100+ posts
Copy/Paste functionality for variable values
You can add the variable to a list, and then copy and paste that value. I do, however, like the idea of being to edit the value directly rather than having to set it to something.
- hsnaker
-
Scratcher
3 posts
Copy/Paste functionality for variable values
But then how did @griffpatch allow us to copy a variable to our clipboard and paste it in a text editor?
- medians
-
Scratcher
1000+ posts
Copy/Paste functionality for variable values
But then how did @griffpatch allow us to copy a variable to our clipboard and paste it in a text editor?You might be thinking of a list.
- google-snake44
-
New Scratcher
2 posts
Copy/Paste functionality for variable values
move (2) steps
turn cw (((-90) * (0))(-90) - (90)) degrees
Last edited by google-snake44 (Today 05:10:27)
- google-snake44
-
New Scratcher
2 posts
Copy/Paste functionality for variable values
say [hello will you DIE AND FUNK]
- dizzyboy42
-
Scratcher
500+ posts
Copy/Paste functionality for variable values
move (2) steps
turn cw (((-90) * (0))(-90) - (90)) degrees
don't block spam pleasesay [hello will you DIE AND FUNK]
- FreshTheCat
-
Scratcher
100+ posts
Copy/Paste functionality for variable values
Support, though in the meantime it's worth noting you CAN copy from lists, so just do that for now.It is super annoying tho and doesn't always work, for that reason support
- Discussion Forums
- » Suggestions
-
» Copy/Paste functionality for variable values











