Discuss Scratch

sprands
Scratcher
100+ posts

Detecting the Shift and F5 keys

EDIT: No F5. Please don't reject the topic simply because of the F5.
Ok, so by now we've all used the Shift key for a game. And a lot of us maybe used F5. This is what we need:

<key [shift v] pressed?>

<key [f5 v] pressed?>

when [shift v] key pressed

when [f5 v] key pressed


Reasons:
-Shift is pretty much standard for games. In 3D games and many 2D platformers, Left Shift will make your character move faster. I've never seen an instance where Right Shift is useful, but it could be used.
-F5, being the only FN key that doesn't already take up a function, could be very useful in games as well. Minecraft already does something with F5.

Notes:
-We can't do Number Pad sensing because many keyboards don't have number pads, and it would be inconvenient.
-The “Alt” key is in use by the system.
-The other FN keys are also in use by the system.
-I guess the symbols (They are the Hyphen, Slash, Backlash, Left and Right Brackets, Left and Right Parentheses, Vertical Slash, Question Mark, Greater Sign, Less Sign, Plus Sign, Equals Sign, Colon, Semicolon, @, #, $, %, ^, &, *, the exclamation mark, Apostrophe, Quotation Mark, and a little more that I don't think I know) can be included in the key detecting blocks as well.

Overall, we need more keys for the key detecting blocks.

Last edited by sprands (July 30, 2017 20:56:20)


16
i don't use this website
FancyFoxy
Scratcher
500+ posts

Detecting the Shift and F5 keys

F5 takes up a function on my computer. It's F7 and F10 that don't take up functions.
I support for shift, but not for F5. Depending on your computer, the function keys are scrambled in a certain way.

THIS IS MY SIGNATURE. THIS MEANS IT IS AN AUTOMATIC MESSAGE THAT APPEARS AT THE BOTTOM OF ALL MY POSTS.
Hi! I'm FancyFoxy! I create animations and games that were never, EVER meant to be taken seriously.
FancyFoxy Heroes and #Thanksgiving are some of my latest projects, check them out!
sprands
Scratcher
100+ posts

Detecting the Shift and F5 keys

FancyFoxy wrote:

F5 takes up a function on my computer. It's F7 and F10 that don't take up functions.
I support for shift, but not for F5. Depending on your computer, the function keys are scrambled in a certain way.
You use Mac right? I'm thinking of the keys on Windows…

16
i don't use this website
FancyFoxy
Scratcher
500+ posts

Detecting the Shift and F5 keys

sprands wrote:

FancyFoxy wrote:

F5 takes up a function on my computer. It's F7 and F10 that don't take up functions.
I support for shift, but not for F5. Depending on your computer, the function keys are scrambled in a certain way.
You use Mac right? I'm thinking of the keys on Windows…
I use Windows.

THIS IS MY SIGNATURE. THIS MEANS IT IS AN AUTOMATIC MESSAGE THAT APPEARS AT THE BOTTOM OF ALL MY POSTS.
Hi! I'm FancyFoxy! I create animations and games that were never, EVER meant to be taken seriously.
FancyFoxy Heroes and #Thanksgiving are some of my latest projects, check them out!
sprands
Scratcher
100+ posts

Detecting the Shift and F5 keys

FancyFoxy wrote:

sprands wrote:

FancyFoxy wrote:

F5 takes up a function on my computer. It's F7 and F10 that don't take up functions.
I support for shift, but not for F5. Depending on your computer, the function keys are scrambled in a certain way.
You use Mac right? I'm thinking of the keys on Windows…
I use Windows.
Strange, I use windows too. I use an HP. Here: My browser / operating system: Windows NT 10.0, Chrome 59.0.3071.104, Flash 26.0 (release 0)

16
i don't use this website
FancyFoxy
Scratcher
500+ posts

Detecting the Shift and F5 keys

sprands wrote:

FancyFoxy wrote:

sprands wrote:

FancyFoxy wrote:

F5 takes up a function on my computer. It's F7 and F10 that don't take up functions.
I support for shift, but not for F5. Depending on your computer, the function keys are scrambled in a certain way.
You use Mac right? I'm thinking of the keys on Windows…
I use Windows.
Strange, I use windows too. I use an HP. Here: My browser / operating system: Windows NT 10.0, Chrome 59.0.3071.104, Flash 26.0 (release 0)
I use a Dell. That's the difference.

THIS IS MY SIGNATURE. THIS MEANS IT IS AN AUTOMATIC MESSAGE THAT APPEARS AT THE BOTTOM OF ALL MY POSTS.
Hi! I'm FancyFoxy! I create animations and games that were never, EVER meant to be taken seriously.
FancyFoxy Heroes and #Thanksgiving are some of my latest projects, check them out!
sprands
Scratcher
100+ posts

Detecting the Shift and F5 keys

FancyFoxy wrote:

sprands wrote:

FancyFoxy wrote:

sprands wrote:

FancyFoxy wrote:

F5 takes up a function on my computer. It's F7 and F10 that don't take up functions.
I support for shift, but not for F5. Depending on your computer, the function keys are scrambled in a certain way.
You use Mac right? I'm thinking of the keys on Windows…
I use Windows.
Strange, I use windows too. I use an HP. Here: My browser / operating system: Windows NT 10.0, Chrome 59.0.3071.104, Flash 26.0 (release 0)
I use a Dell. That's the difference.
Oh. Well, we at least need Shift and the symbols.

16
i don't use this website
LionHeart70
Scratcher
1000+ posts

Detecting the Shift and F5 keys

There are a few problems with this..

1: The “F5” key (and the other keys like that) usually trigger a function on the computer.
2: Not all keyboards may have some of these keys.

lh70 / nora/tobi / she-they pronouns / pansexual-demisexual / 14 / sagittarius / furry / artist / intp / stop-motion films / lbp / fall out boy / panic! at the disco / twenty one pilots / stranger things / a series of unfortunate events
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
scrooge100
Scratcher
1000+ posts

Detecting the Shift and F5 keys

F5 for me refreshes the page
no support

but maybe support for shift

sprands
Scratcher
100+ posts

Detecting the Shift and F5 keys

LionHeart70 wrote:

There are a few problems with this..

1: The “F5” key (and the other keys like that) usually trigger a function on the computer.
2: Not all keyboards may have some of these keys.

1.Ok, we're not doing F5, and F5 doesn't USUALLY trigger a function of the computer, as there are different types of computers. All computers have at least one vacant FN key.
2.What kind of keyboard doesn't have those symbols?

16
i don't use this website
WolfCat67
Scratcher
1000+ posts

Detecting the Shift and F5 keys

sprands wrote:

LionHeart70 wrote:

There are a few problems with this..

1: The “F5” key (and the other keys like that) usually trigger a function on the computer.
2: Not all keyboards may have some of these keys.

1.Ok, we're not doing F5, and F5 doesn't USUALLY trigger a function of the computer, as there are different types of computers. All computers have at least one vacant FN key.
2.What kind of keyboard doesn't have those symbols?
1. My vacant FN key is F7.
2. I think they're referring to phone keyboards, but really, you can't have Scratch projects on those…

Charles12310
Scratcher
1000+ posts

Detecting the Shift and F5 keys

No Support. Using F5 will make something happen to your computer,

However, I do Support using Shift keys. I don't see any effect besides typing.


A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
sprands
Scratcher
100+ posts

Detecting the Shift and F5 keys

Charles12310 wrote:

No Support. Using F5 will make something happen to your computer,

However, I do Support using Shift keys. I don't see any effect besides typing.
There's no reason to not support it then, I say in the top “We're not doing f5.”

16
i don't use this website
scrooge100
Scratcher
1000+ posts

Detecting the Shift and F5 keys

sprands wrote:

Charles12310 wrote:

No Support. Using F5 will make something happen to your computer,

However, I do Support using Shift keys. I don't see any effect besides typing.
There's no reason to not support it then, I say in the top “We're not doing f5.”
then edit the title

Charles12310
Scratcher
1000+ posts

Detecting the Shift and F5 keys

sprands wrote:

Charles12310 wrote:

No Support. Using F5 will make something happen to your computer,

However, I do Support using Shift keys. I don't see any effect besides typing.
There's no reason to not support it then, I say in the top “We're not doing f5.”
Alright, it's just that something might happen when pressing F5 that might bother you while playing a project since it's the Internet, Minecraft is different because you don't play it on the Internet, but you do need a connection (for multiplayer, IF).


A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
walkcycle
Scratcher
500+ posts

Detecting the Shift and F5 keys

No support for adding new keys to Scratch. We have quite enough already.

Note: The

<key [ v] pressed?>

booleans in Scratch 3.0 GUI accept reporters in the menu input, no editing outside Scratch required. So it may prove possible to detect more than the native keys of Scratch.

Also, duplicate.
Cub56
Scratcher
1000+ posts

Detecting the Shift and F5 keys

I support for Shift officially.

It is possible to detect Shift with what I think is a hacked block (take a look inside my Retribution project in my signature to see how it's used)…

But this also detects Ctrl as well.

So I support detecting shift only officially.

Check out Life Raft Survival, my new advanced sandbox survival game with crafting, building, transportation, weather events, tropical storms, and more!

In the game you're stranded at sea after a mysterious crash and must survive in an unforgiving tropical island environment collecting resources and crafting, in an attempt to finally be rescued.



Charles12310
Scratcher
1000+ posts

Detecting the Shift and F5 keys

walkcycle wrote:

No support for adding new keys to Scratch. We have quite enough already.

Note: The

<key [ v] pressed?>

booleans in Scratch 3.0 GUI accept reporters in the menu input, no editing outside Scratch required. So it may prove possible to detect more than the native keys of Scratch.

Also, duplicate.
1. Did people think a no shift key wasn't enough?
2. This topic mentions Shift keys AND F5 KEYS. The link mentions just Shift. This topic mentions both Shift and F5.
3. I'm not trying to attack your opinion.


A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
duckboycool
Scratcher
1000+ posts

Detecting the Shift and F5 keys

1. If you want people to not talk about the F5 key, remove it from your title.

2. Duplicate. Either way, with or without the F5 key.

I used to be active on the forums, but I have mostly moved past Scratch. I still do check my Scratch messages, so if you'd like to talk to me, just leave a comment on my profile. My main project on Scratch was Cookie Clicker, but my newest project is Snake Snake, a game based off of Snake, but with two snakes, and you can play either singleplayer or multiplayer.

Charles12310
Scratcher
1000+ posts

Detecting the Shift and F5 keys

duckboycool wrote:

1. If you want people to not talk about the F5 key, remove it from your title.

2. Duplicate. Either way, with or without the F5 key.
1. Yes, please.
2. So what's the point of suggesting the F5 key if the duplicate is a topic that mentions just Shift?
3. The topic linked is different than what the other user suggested, so Idk which is original.

Last edited by Charles12310 (July 31, 2017 16:03:55)



A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!

Powered by DjangoBB