Discuss Scratch

StrangeMagic32
Scratcher
1000+ posts

Hacked Blocks

I made a hacked block for key presses, but I don't know what the key code for LShift and LCtrl are, so I was wondering if anyone know what they are. Thanks


“Remember the worth of souls is great in the sight of God;”
- Doctrine and Covenants 18:10


I have since moved to @JollyWinter
imfh
Scratcher
1000+ posts

Hacked Blocks

It should be this character right here:

It is probably corrupted by putting it on the forms though. Most special characters are the same, ASCII 128. See this project by @griffpatch which can detect it and has ALL the key codes in list ASCII. Also note that last I checked, Scratch 3.0 can't detect shift by itself.

Last edited by imfh (Nov. 14, 2018 21:37:48)


Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
StrangeMagic32
Scratcher
1000+ posts

Hacked Blocks

imfh wrote:

It should be this character right here:

It is probably corrupted by putting it on the forms though. Most special characters are the same, ASCII 128. See this project by @griffpatch which can detect it and has ALL the key codes in list ASCII. Also note that last I checked, Scratch 3.0 can't detect shift by itself.
Thanks, and welp I wonder what I'll do in 3.0


“Remember the worth of souls is great in the sight of God;”
- Doctrine and Covenants 18:10


I have since moved to @JollyWinter
imfh
Scratcher
1000+ posts

Hacked Blocks

You'll be able to detect keys like !@#$%^&*(){}|:"<>? just not capital letters. Unless they make the key pressed block(which doesn't need hacking anymore) case sensitive somehow…

To work around this even in 2.0 some projects allow the user to use a ask block for more advanced strings.

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
StrangeMagic32
Scratcher
1000+ posts

Hacked Blocks

imfh wrote:

You'll be able to detect keys like !@#$%^&*(){}|:"<>? just not capital letters. Unless they make the key pressed block(which doesn't need hacking anymore) case sensitive somehow…

To work around this even in 2.0 some projects allow the user to use a ask block for more advanced strings.
yeah makes sense…


“Remember the worth of souls is great in the sight of God;”
- Doctrine and Covenants 18:10


I have since moved to @JollyWinter

Powered by DjangoBB