Discuss Scratch

YAYAICT
Scratcher
54 posts

Just add the rest of the keys already

There is a way
forever
if <key (join [put a key here] []) pressed?> then
set [block] to [any block you want]
end
end
example:
forever
if <key (join [enter] []) pressed?> then
set [something] to [1]
end
end

some keys don't work tho

Last edited by YAYAICT (May 6, 2023 18:52:06)

medians
Scratcher
1000+ posts

Just add the rest of the keys already

YAYAICT wrote:

There is a way
when green flag clicked
forever
if (join [put any key here] [put nothing here]) then
say [put any block here!]
end
end
That doesn't work with all of the keys.
Also, back when this original post was made, you couldn't put reporters or boolean blocks in the key pressed dropdown without hacked blocks.
YAYAICT
Scratcher
54 posts

Just add the rest of the keys already

medians wrote:

YAYAICT wrote:

There is a way
when green flag clicked
forever
if (join [put any key here] [put nothing here]) then
say [put any block here!]
end
end
That doesn't work with all of the keys.
Also, back when this original post was made, you couldn't put reporters or boolean blocks in the key pressed dropdown without hacked blocks.

i added that to the post, i was editing when you were typing this reply
and also i had no idea about what you said about not being able to put stuff n the key dropdown, thanks for the info, I'm dumb lol

Last edited by YAYAICT (May 6, 2023 18:54:09)

The_Blue_J
Scratcher
1000+ posts

Just add the rest of the keys already

I think it can be worked around using
<key (join [enter] []) pressed?>
Ninja'd

Last edited by The_Blue_J (May 6, 2023 19:54:08)

cs3868895
Scratcher
1000+ posts

Just add the rest of the keys already

BUmp because dup-
gdfsgdfsgdfg
Scratcher
1000+ posts

Just add the rest of the keys already

<key (join [] []) pressed?>

This workaround doesn’t work for some keys suggested

mostly cmd keys but enter works
medians
Scratcher
1000+ posts

Just add the rest of the keys already

gdfsgdfsgdfg wrote:

<key (join [] []) pressed?>

This workaround doesn’t work for some keys suggested

mostly cmd keys but enter works
Back when this suggestion was made, there was a trick you could do with hacked blocks with that block allowing for more keys.
PaperMarioFan2022
Scratcher
1000+ posts

Just add the rest of the keys already

mariobros406 wrote:

If you want to use any other keys, use this base: http://scratch.mit.edu/projects/12562667/ It even includes capitals and shift for other symbols! However, I dunno why the Scratch Team didn't add those to the block in the first place.

Maybe they were too hesitant about the rise of confusion and stress this might put on new users, but I don't know for sure.
medians
Scratcher
1000+ posts

Just add the rest of the keys already

PaperMarioFan2022 wrote:

mariobros406 wrote:

If you want to use any other keys, use this base: http://scratch.mit.edu/projects/12562667/ It even includes capitals and shift for other symbols! However, I dunno why the Scratch Team didn't add those to the block in the first place.

Maybe they were too hesitant about the rise of confusion and stress this might put on new users, but I don't know for sure.
Though the method used there broke in Scratch 3.0, even if the project wasn't taken down/unshared.
PaperMarioFan2022
Scratcher
1000+ posts

Just add the rest of the keys already

medians wrote:

PaperMarioFan2022 wrote:

mariobros406 wrote:

If you want to use any other keys, use this base: http://scratch.mit.edu/projects/12562667/ It even includes capitals and shift for other symbols! However, I dunno why the Scratch Team didn't add those to the block in the first place.

Maybe they were too hesitant about the rise of confusion and stress this might put on new users, but I don't know for sure.
Though the method used there broke in Scratch 3.0, even if the project wasn't taken down/unshared.

Ah, makes sense. These are very useful, but ST shouldn't remove these since they make share project ID tokens for each project like TurboWarp does.
cookieclickerer33
Scratcher
1000+ posts

Just add the rest of the keys already

mcsquaggle
Scratcher
500+ posts

Just add the rest of the keys already

AonymousGuy wrote:

There are actually a few problems however, such as the fact that some keys may have special functions, and things like that. So only really shift, enter, ctrl, alt, tab, and caps lock could be detected for those kinds of keys, while the rest of the symbols would work.
exactly. why cant we have this?
<key [f5 v] pressed?>
or this?!?!
<key [ v] held for () seconds::sensing>
gdfsgdfsgdfg
Scratcher
1000+ posts

Just add the rest of the keys already

mcsquaggle wrote:

AonymousGuy wrote:

There are actually a few problems however, such as the fact that some keys may have special functions, and things like that. So only really shift, enter, ctrl, alt, tab, and caps lock could be detected for those kinds of keys, while the rest of the symbols would work.
exactly. why cant we have this?
<key [f5 v] pressed?>
Function 5………

Reloading!
*starts reload sound*
*gun cock sound*
*done*

fr though
that reloads the page
gdfsgdfsgdfg
Scratcher
1000+ posts

Just add the rest of the keys already

bump
mcsquaggle
Scratcher
500+ posts

Just add the rest of the keys already

oh no..
when green flag clicked
say [press alt+f4 to continue] for (2) secs
forever
if <<key [alt v] pressed?> and <key [f4 v] pressed?>> then
say [i tricked you.] for (2) secs
end
end
for this reason, 75% support.
but!
when green flag clicked
if <key [shift v] pressed?> then
say [Please turn off capslock or don't use uppercase for this, Gracias!] for (2) secs
else
ask [What is 5+78?] and wait
...
end
Piggygirl3838
Scratcher
100+ posts

Just add the rest of the keys already

Support! If someone (me) were to make a game that was an iPad/phone and has custom typing this would be helpful.
Edit: Also add . , ? ! @ # $ % ^ & * etc

Last edited by Piggygirl3838 (Oct. 6, 2023 03:55:01)

Tboyt11210
Scratcher
2 posts

Just add the rest of the keys already

This is what I need so badly! Definitely following in case it ever gets added.
Foldy_TPOT
Scratcher
100+ posts

Just add the rest of the keys already

here
And workaround:
<key(join(key::grey)())pressed?>
medians
Scratcher
1000+ posts

Just add the rest of the keys already

Foldy_TPOT wrote:

And workaround:
<key(join(key::grey)())pressed?>
Does not work with some of the keys in vanilla 3.0
DifferentDance8
Scratcher
1000+ posts

Just add the rest of the keys already

Foldy_TPOT wrote:

here
And workaround:
<key(join(key::grey)())pressed?>
The workaround doesn't work for stuff like Ctrl and Alt

Powered by DjangoBB