Scratch can sense every letter, number on the keyboard, but it's missing a few keys that are essential for projects that use text without the ask key, such as the newest project chosen by the whiz, can't delete text without the backspace/delete button, it'd be usefull if Scratch could sense the key
Offline
I was a bit more ambitious... here's my suggestion More for the [When ___ key pressed] and <if key ___ pressed> blocks.
My topic post (here so I don't have to explain everything again):
I'd normally say that this isn't really neccessary (you'd think "When are you going to need the semicolon?"), but there are some uses for it.
1. Word processors. In real word processors, you push keys and the characters appear. But the only things you can do on Scratch for that are the letters, numbers, and space. Very lacking for Scratch word processors (and the Backspace is a button you click!).
2. Learn-to-type programs. You won't be able to use the Shift key, and only use the letters, numbers, and space. I know that you could use the ask block, but it isn't the same. And Scratch can't sense capitalized letters from lowercase letters with the ask block.
3. Programming languages. Instead of using the chatbar to enter in code, you could use the block. And it looks nicer and it's more realistic.
Not much, but it would really be nice.
What do I want added? Well, all the characters I want available are:"abcdefghijklmnopqrstuvqxyz1234567890!@#$%^&*()`~-_=+[{]}\|;:'",<.>/? and Enter"
Last edited by Jonathanpb (2009-11-16 23:48:23)
Offline
I think this many keys would get confusing in a pop-up menu...maybe there should be a couple of options for selecting a key in a 'when key pressed' hat or 'is key pressed' block; a way to capture a keystroke (ie, 'when [ctrl+alt+delete] is pressed') and a popup, similar to the note selector on the sound blocks, that shows a virtual keyboard and allows you to select a key. It would also be nice if we could drop a reporter into these blocks (ie 'when (variable) is pressed') that could contain a key name or an ASCII keycode.
Offline
I think that there should definately be all of the ASCII characters. This is because alt keys would be a bit overboard.
Offline
fullmoon wrote:
It would also be nice if we could drop a reporter into these blocks (ie 'when (variable) is pressed') that could contain a key name or an ASCII keycode.
Yeah, a person may want to make a game with customizable controls. I agree with you.
Offline
Really the only other keys we'd need would be:
` - = [ ] \ ; ' , . / and shift.
Ctrl and Alt aren't on all computers, and all the other standard symbols can then be done with:
When [ key ] key pressed
If < shift > key pressed
and
< < key [ key ] pressed > and < key [ shift ] pressed > >
Offline