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

#1 2011-03-26 20:18:14

GraemeK
Scratcher
Registered: 2010-06-14
Posts: 73

cAsE Recognition

I would like to know if it is possible for the <[]=[]> blocks to recognise the difference between uppercase and lowercase letters?
I have just tried it and it appears not. Could anyone advise me on another way of doing it?? (without hacking as I am planning an upload)

Last edited by GraemeK (2011-03-26 20:20:31)


http://internetometer.com/image/13865.png

Offline

 

#2 2011-03-27 13:33:59

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: cAsE Recognition

The only blocks that have case recognition are the two < and > blocks, so I imagine you could somehow make use of those to sense the case!

Offline

 

#3 2011-03-27 13:54:27

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: cAsE Recognition

LS97 wrote:

The only blocks that have case recognition are the two < and > blocks, so I imagine you could somehow make use of those to sense the case!

They aren't case sensitive either...

Try this:
[blocks]<say[ look at these ]for( 2 )secs>
<say[ [letter1] ]for( 1 )secs>
<say[ [letter2] ]for( 1 )secs>
<ask[ Were they the same? (true/false) ]>[/blocks]

That's the only thing I can think of, but you have to trust the user.


/* No comment */

Offline

 

#4 2011-03-27 13:59:31

GraemeK
Scratcher
Registered: 2010-06-14
Posts: 73

Re: cAsE Recognition

No, have a look at my 'Password generator' It's for a new version which stops the same letter from appearing twice in the same password.


Thanks for your help so far


http://internetometer.com/image/13865.png

Offline

 

#5 2011-03-28 14:17:01

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: cAsE Recognition

There is a way!

Make 1 list A-Z (Caps)
make another a-z (Lowercase)
and a final (special characters and numbers)

now use the <list |  | contains | |> block to  work out which list its under and then get the case!


You can now reach me on Twitter @johnnydean1_

Offline

 

#6 2011-03-28 14:51:29

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: cAsE Recognition

will that (^^) work!?
It's very neat and professional. Let me test it  smile

Works! Hats off, JD1!

Last edited by LS97 (2011-03-28 15:08:56)

Offline

 

#7 2011-03-28 16:32:46

GraemeK
Scratcher
Registered: 2010-06-14
Posts: 73

Re: cAsE Recognition

Thanks johnnydean1. I would never have thought of that, yet it works!
Look out for Password Generator v2 within the next fortnight.

Thanks again,
Graeme Kilgour

Last edited by GraemeK (2011-03-28 16:43:31)


http://internetometer.com/image/13865.png

Offline

 

Board footer