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)

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.
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…
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.
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)
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.
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.
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.
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?
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.
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.”
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).
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.
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.
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.
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)

Powered by DjangoBB