This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » keyboard text / numeric entry as the program is running

#1 2008-10-22 04:30:44

Benbidean
Scratcher
Registered: 2008-10-22
Posts: 1

keyboard text / numeric entry as the program is running

Scratch needs to enable users to enter text and numeric data in response to on screen prompts as the program is running.

Offline

 

#2 2008-10-24 06:01:50

Nikimax
Scratcher
Registered: 2008-06-22
Posts: 36

Re: keyboard text / numeric entry as the program is running

This will be hard to release because of main scratch conception: all build of sprites. So, now we can only draw our own widgets...

Last edited by Nikimax (2008-10-24 06:02:32)


http://scratch.mit.edu/projects/Nikimax/291754
Test yourself=)

Offline

 

#3 2008-10-24 10:44:50

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: keyboard text / numeric entry as the program is running

Benbidean wrote:

Scratch needs to enable users to enter text and numeric data in response to on screen prompts as the program is running.

I agree with you on this.  It would enable a lot of great projects.  I'm pretty sure the Scratch Team is thinking about the best way to do that.  Any thoughts on how you think those capabilites should be integrated into the Scratch model?  What new blocks do you visualize?  Or additional capabilites added to existing blocks?

I would hope that, along with this capability, the Scratch Team would add some basic string functions so that the text values entered at run time can be processed properly.  Something like the regular expressions in Python would be nice...but probably not realistic.  At a bare minimum, I feel we should be able to map a text string into a list and vice-versa (without the spaces between the letters).  Then, we could write our own string functions.  Maybe we could even use something like Jen's Build Your Own Block format to encapsulate them neatly!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2008-10-24 12:17:48

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: keyboard text / numeric entry as the program is running

I would incorporate it into variables, adding a "Input data for [variablename]" block to the permutaions availabe for setting a variable or a list entry.

Use of this block would result in a pop-up text entry box into which the user could type.  When they press return, or click the built in "ok" box, it vanishes and sets the given variable (or list item) to whatever has been typed in the box.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#5 2008-10-25 03:20:48

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: keyboard text / numeric entry as the program is running

do you mean a textbox that can be typed into on the program? If so I think the easiest method this could be achieved is through modifying the properties of a sprite so that text cannn be inserted to, much like the one im using now to type in what im saying

Offline

 

#6 2008-11-01 08:39:09

likegames
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: keyboard text / numeric entry as the program is running

you can do that in lists in development mode.


There are 10 types of people in this world: Those who understand trinary, those who don't, and those who think this is the same old signature.
Three lines! (and base three!)

Offline

 

#7 2008-11-01 08:49:18

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: keyboard text / numeric entry as the program is running

likegames wrote:

you can do that in lists in development mode.

Yeah, but not online or anything.

My idea would be to have a new type of variable display. There's already normal, slider, and large, why not add text box (which hopefully would be resizable like lists, but only in development mode)? With the introduction of text strings, you'd think they'd need a way better to use them!

Last edited by coolstuff (2008-11-01 08:50:01)

Offline

 

#8 2009-02-01 15:29:55

graspol
Scratcher
Registered: 2008-12-26
Posts: 1

Re: keyboard text / numeric entry as the program is running

I would also very much appriciate it when user input can be done to a variable. I think Scratch is a great programming environment for children, but it could be even greater!

Offline

 

#9 2009-02-07 16:39:45

ML1
Scratcher
Registered: 2007-08-28
Posts: 65

Re: keyboard text / numeric entry as the program is running

I think, if I get what you want, easiest way would be something like:
<if (blah) typed in> or something like that.

Offline

 

#10 2009-02-08 08:44:14

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: keyboard text / numeric entry as the program is running

number typing can already be done in variables, without the use of list ect... but a new block under the Variables section would be great. It could be changed to either fill, out lined, or blank. The max width/height can be changed using blocks and a scroll bar automaticly apears when nessacery.

Offline

 

#11 2009-02-10 21:48:55

hamsandwitch678
Scratcher
Registered: 2008-10-15
Posts: 100+

Re: keyboard text / numeric entry as the program is running

you should be able to type in text on and offline.  this can be simulated with a list and if
"item 1 of list= R" and stuff. this could be like entering a username!


You won't get in a jam when you add a little ham because when you add meat, your life will be sweet.                     .

Offline

 
  • Index
  •  » Suggestions
  •  » keyboard text / numeric entry as the program is running

Board footer