Discuss Scratch

AntonL1kesPotato
Scratcher
1000+ posts

How to make scratch detect the ^^ key

The title explains it. How do i make scratch detect the ^^ key, since you need to press it two times for it to type something, putting a single circonflexe or two doesn't work. Is it even possible?
For clarification, I'm putting the characters in a list, including letters that aren't included on the scroll bar for the “key pressed?” block like &,é, etc. All of them work, except for ^^.

Last edited by AntonL1kesPotato (Feb. 18, 2023 20:35:48)

SpyLion
Scratcher
100+ posts

How to make scratch detect the ^^ key

I was about to answer with scratch blocks when I realized what you were asking. Do you mean like, in the code of a project, or in scratch itself?
AntonL1kesPotato
Scratcher
1000+ posts

How to make scratch detect the ^^ key

SpyLion wrote:

I was about to answer with scratch blocks when I realized what you were asking. Do you mean like, in the code of a project, or in scratch itself?
In the code of a project. I'm putting the characters in a list, including letters that aren't included on the scroll bar for the “key pressed?” block like &,é, etc. All of them work, except for ^^.

Last edited by AntonL1kesPotato (Feb. 18, 2023 20:35:24)

medians
Scratcher
1000+ posts

How to make scratch detect the ^^ key

Here's an old project that luckily didn't just use backspace:
https://scratch.mit.edu/projects/19204741/editor/
AntonL1kesPotato
Scratcher
1000+ posts

How to make scratch detect the ^^ key

medians wrote:

Here's an old project that luckily didn't just use backspace:
https://scratch.mit.edu/projects/19204741/editor/
Unfortunately it doesn't detect french keys from the AZERTY keyboard layout like é, è, ç which is what i'm using. The ^^ key still doesn't work.

Last edited by AntonL1kesPotato (Feb. 18, 2023 20:49:35)

SpyLion
Scratcher
100+ posts

How to make scratch detect the ^^ key

AntonL1kesPotato wrote:

SpyLion wrote:

I was about to answer with scratch blocks when I realized what you were asking. Do you mean like, in the code of a project, or in scratch itself?
In the code of a project. I'm putting the characters in a list, including letters that aren't included on the scroll bar for the “key pressed?” block like &,é, etc. All of them work, except for ^^.
Then I don't think it is possible.
CST1229
Scratcher
1000+ posts

How to make scratch detect the ^^ key

This script seems to somewhat work for me:

(Though, that boolean seems to start returning true once I pressed AltGr+3+Space, then false once I pressed AltGr+3+3 after that (AltGr+3 is the ^ key for me))

(By the way, at least on the keyboard layout I use, you can type a ^ by itself by pressing its key then space.)
AntonL1kesPotato
Scratcher
1000+ posts

How to make scratch detect the ^^ key

CST1229 wrote:

This script seems to somewhat work for me:

(Though, that boolean seems to start returning true once I pressed AltGr+3+Space, then false once I pressed AltGr+3+3 after that (AltGr+3 is the ^ key for me))

(By the way, at least on the keyboard layout I use, you can type a ^ by itself by pressing its key then space.)
Unsurprisingly, it still doesn't work for me. Just detecting if the KEY ^^ is pressed (on the right of the P key for me) instead of the character would be enough, but i think there isn't a solution for it neither.

Powered by DjangoBB