This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-01 18:02:21

emma147
New Scratcher
Registered: 2011-11-01
Posts: 4

Not letting the enter key be pressed when asking a question

I'm completing a scratch programme that 'draws straws' for a task (allocating a task to someone). At the moment I'm trying not to let the user input just the enter key but I can't find an effective way to do it. Any Ideas?

Thanks   smile

Offline

 

#2 2011-11-01 18:05:13

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

Re: Not letting the enter key be pressed when asking a question

If you'd like to user to input text, a great way to do so is through the "ask" block.

Otherwise, there's no way to detect the enter key. It's a bit ridiculous. However, you could use the space key or other "general" keys.

Offline

 

#3 2011-11-01 23:38:23

emma147
New Scratcher
Registered: 2011-11-01
Posts: 4

Re: Not letting the enter key be pressed when asking a question

I am able to input text into the programme however, if the enter key even is knocked by mistake the programme skips a large amount of code. Is there any way to stop this happening?

Offline

 

#4 2011-11-02 17:17:31

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Not letting the enter key be pressed when asking a question

TRocket wrote:

Not using the [blocks]<when green flag clicked>[/blocks]block

Only post if there's something helpful please. Just use NOT answer = or or.

Offline

 

Board footer