Discuss Scratch

Techno-CAT
Scratcher
1000+ posts

Copy to clipboard block

copy [] to clipboard

You can put text in there, you can put variables in there, you can put lists in there. It'd be a great idea especially for save codes, and useful for those on mobile and tablet who don't have access to keyboard copy and paste functions.

Yes, you can hold down on variable output, tap select all, hold down again and press select all and copy, but this inadvertedly picks up the sitemap, even when in fullscreen.

Last edited by Techno-CAT (April 8, 2021 08:55:58)

PATSATDAT
Scratcher
1000+ posts

Copy to clipboard block

Techno-CAT wrote:

copy [] to clipboard ::control

You can put text in there, you can put variables in there, you can put lists in there. It'd be a great idea especially for save codes, and useful for those on mobile and tablet who don't have access to keyboard copy and paste functions.

Yes, you can hold down on variable output, tap select all, hold down again and press select all and copy, but this inadvertedly picks up the sitemap, even when in fullscreen.
I made your scratchblocks better also there should be a cooldown because
forever
copy [] to clipboard ::control
end
mybearworld
Scratcher
1000+ posts

Copy to clipboard block

copy [illegal things] to clipboard::control

Last edited by mybearworld (April 8, 2021 10:08:30)

PATSATDAT
Scratcher
1000+ posts

Copy to clipboard block

removed

Last edited by PATSATDAT (April 8, 2021 10:13:08)

Techno-CAT
Scratcher
1000+ posts

Copy to clipboard block

mybearworld wrote:

copy [illegal things] to clipboard::control
Right, have the user confirm they would like to copy to clip. Same could be said for forum links, profile pictures, forum posts, upload image in editor, etc.
banana439monkey
Scratcher
1000+ posts

Copy to clipboard block

err, that can result in inadvertent things being added, such as ads and other fun stuff. it can also be annoying to paste what you were expecting to be an actual piece of text/image and it's some random person's creation

Banana
Chiroyce
Scratcher
1000+ posts

Copy to clipboard block

mybearworld wrote:

copy [illegal things] to clipboard::control
There will be a popup saying
Do you want to copy “text” to your clipboard? (Yes / No / Report!)

You should also be able to report it if someone tries copying something bad to your clipboard, so the text and the project id will be sent to the ST.
PATSATDAT
Scratcher
1000+ posts

Copy to clipboard block

bump
wvj
Scratcher
1000+ posts

Copy to clipboard block

Max character limit should be 2000
Maximouse
Scratcher
1000+ posts

Copy to clipboard block

wvj wrote:

Max character limit should be 2000
That's smaller than even many save codes. Maybe 200,000?
Chiroyce
Scratcher
1000+ posts

Copy to clipboard block

wvj wrote:

Max character limit should be 2000
Why a max limit so small? The Clipboard isn't stored on RAM
wvj
Scratcher
1000+ posts

Copy to clipboard block

Maximouse wrote:

wvj wrote:

Max character limit should be 2000
That's smaller than even many save codes. Maybe 200,000?
Yes, that would be better.

copy [] to clipboard

This block would be too long for very big level save codes.
Techno-CAT
Scratcher
1000+ posts

Copy to clipboard block

wvj wrote:

Maximouse wrote:

wvj wrote:

Max character limit should be 2000
That's smaller than even many save codes. Maybe 200,000?
Yes, that would be better.

copy [] to clipboard

This block would be too long for very big level save codes.
Hence

copy (item (1 v) of [list v] :: list) to clipboard

where item 1 of list is the save code
Socialix
Scratcher
1000+ posts

Copy to clipboard block

If JavaScript has the power of accessing the current copied thing, there should be a
(current copied text ::sensing reporter)
reporter block. If the current copied thing is an image, it outputs blank.
These blocks should be in Sensing too.


However, this could be abused to clear the clipboard history (a feature in Windows 10) so the user can't recover their clipboard history, since the clipboard history has a limit:

when green flag clicked
reset timer
set [clipboard text v] to (current copied text ::sensing reporter)
forever
set [varTimer v] to ((timer) + (0.1))
copy [LIKE, FAV, FOLLOW!!! OR ELSE YOU ARE NOT PLEASED WITH GOOD LUCK!!] to clipboard ::sensing
end

when [timer v] > (varTimer)
if <(clipboard text) = []> then
copy [AN IMAGE?????? OR NOTHING?????? USE YOUR CLIPBOARD FOR TEXT!!!!!] to clipboard ::sensing
else
copy (clipboard text) to clipboard ::sensing
end

Last edited by Socialix (April 27, 2021 08:24:11)

Chiroyce
Scratcher
1000+ posts

Copy to clipboard block

Socialix wrote:

If JavaScript has the power of accessing the current copied thing, there should be a
(current copied text ::sensing reporter)
reporter block. If the current copied thing is an image, it outputs blank.
No, privacy issues. People might've copied personal data onto the local clipboard when scratch can access this and encode it into a cloud variable.
Socialix
Scratcher
1000+ posts

Copy to clipboard block

Chiroyce wrote:

Socialix wrote:

If JavaScript has the power of accessing the current copied thing, there should be a
(current copied text ::sensing reporter)
reporter block. If the current copied thing is an image, it outputs blank.
No, privacy issues. People might've copied personal data onto the local clipboard when scratch can access this and encode it into a cloud variable.
Oh, right. It was a bad idea to suggest the reporter.
Maximouse
Scratcher
1000+ posts

Copy to clipboard block

Socialix wrote:

Chiroyce wrote:

Socialix wrote:

If JavaScript has the power of accessing the current copied thing, there should be a
(current copied text ::sensing reporter)
reporter block. If the current copied thing is an image, it outputs blank.
No, privacy issues. People might've copied personal data onto the local clipboard when scratch can access this and encode it into a cloud variable.
Oh, right. It was a bad idea to suggest the reporter.
If isn't a bad idea if Scratch asks the user for permission every time the project wants to access the clipboard.
PATSATDAT
Scratcher
1000+ posts

Copy to clipboard block

Maximouse wrote:

Socialix wrote:

Chiroyce wrote:

Socialix wrote:

If JavaScript has the power of accessing the current copied thing, there should be a
(current copied text ::sensing reporter)
reporter block. If the current copied thing is an image, it outputs blank.
No, privacy issues. People might've copied personal data onto the local clipboard when scratch can access this and encode it into a cloud variable.
Oh, right. It was a bad idea to suggest the reporter.
If isn't a bad idea if Scratch asks the user for permission every time the project wants to access the clipboard.
what happens if the clipboard block is in a forever loop?
Maximouse
Scratcher
1000+ posts

Copy to clipboard block

PATSATDAT wrote:

what happens if the clipboard block is in a forever loop?
This isn't a problem if the popup doesn't block interaction with the page.
dbates314
Scratcher
62 posts

Copy to clipboard block

no support, some people keep important things on their clipboard

Last edited by dbates314 (April 27, 2021 17:19:35)

Powered by DjangoBB