Discuss Scratch

kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

Project Links: turbowarp.org/716737304/ & https://scratch.mit.edu/projects/716737304/
Problem: I need to make it so you can type full stops, commas, brackets, and so on.
What i have done: i have looked on the old forums, and scratch wiki. I have tried those methods, but they do not work. Here is one of the methods i have tried…

when green flag clicked
forever
if <key (join [ ] [ . ]) pressed?> then
set [next letter] to [.]
end
end

What you can do:
(1) Tell me the method you use that works
(2) Tell me if it is even possible
(3) Look at my coding and tell me if i'm doing anything wrong

Thanks for helping! I'm really grateful!

Last edited by kattcrazy (July 25, 2022 23:36:42)

abcde1234qwe
Scratcher
500+ posts

How do i put punctuation in my Notes "app" project??

That method should work, make sure there aren't any spaces in between each character. The only keys that can't be detected are control, shift, alt, backspace, delete and tab (I think there is more). Even though the shift key isn't detectable, it can still detect characters that require using the shift key, such as ?, ", and |.
kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

abcde1234qwe wrote:

Even though the shift key isn't detectable, it can still detect characters that require using the shift key, such as ?, ", and |.

Same method? Coz it sure isnt working!
musicROCKS013
Scratcher
1000+ posts

How do i put punctuation in my Notes "app" project??

After changing a bit of code, it works for me…

kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

musicROCKS013 wrote:

After changing a bit of code, it works for me…


Alr! I think i see what i did wrong.. Maybe. Can u see if , / ! ? Works too?
musicROCKS013
Scratcher
1000+ posts

How do i put punctuation in my Notes "app" project??

kattcrazy wrote:

Alr! I think i see what i did wrong.. Maybe. Can u see if , / ! ? Works too?
Those seem to be detected by
<key (join [here] []) pressed?>
so it should work.
kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

musicROCKS013 wrote:

kattcrazy wrote:

Alr! I think i see what i did wrong.. Maybe. Can u see if , / ! ? Works too?
Those seem to be detected by
<key (join [here] []) pressed?>
so it should work.


So i did it like
<key (join [not here] [heree]) pressed?>
musicROCKS013
Scratcher
1000+ posts

How do i put punctuation in my Notes "app" project??

kattcrazy wrote:

So i did it like
<key (join [not here] [heree]) pressed?>
That should work too. If it doesn't work for some reason then you could try it the other way, but that should work too.
kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

musicROCKS013 wrote:

After changing a bit of code, it works for me…

What code? Just the obvious?
musicROCKS013
Scratcher
1000+ posts

How do i put punctuation in my Notes "app" project??

kattcrazy wrote:

What code? Just the obvious?
I put an image in my post. Maybe cubeupload is blocked for you…

Last edited by musicROCKS013 (July 26, 2022 18:27:54)

kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

musicROCKS013 wrote:

kattcrazy wrote:

What code? Just the obvious?
I put an image in my post. Maybe cubeupload is blocked for you…

Let me host it on assets real quick.


Nono i saw it! Its just, does only the full stop work? And did you change any other coding?

Last edited by kattcrazy (July 26, 2022 18:28:30)

musicROCKS013
Scratcher
1000+ posts

How do i put punctuation in my Notes "app" project??

kattcrazy wrote:

Nono i saw it!
Ok, then yeah. Add more keys to set “Next Letter” to, and add another if else statement.

kattcrazy wrote:

Its just, does only the full stop work? And did you change any other coding?
I used “full stop” because that was the name of the costume, but you could use a period if you need to. As long as it isn't the same as any other letters, you should be fine.

I didn't change any other coding.

Last edited by musicROCKS013 (July 26, 2022 18:30:33)

kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

musicROCKS013 wrote:

kattcrazy wrote:

Nono i saw it!
Ok, then yeah. Add more keys to set “Next Letter” to, and add another if else statement.

kattcrazy wrote:

Its just, does only the full stop work? And did you change any other coding?
I used “full stop” because that was the name of the costume, but you could use a period if you need to. As long as it isn't the same as any other letters, you should be fine.

I didn't change any other coding.


It was just…. If i had the costume switched to Dash (“-”) then when i clicked any not-letter/number key, like a full stop,it did a dash. If i did a letter, then a full stop, the full stop would look like an “a” or whatever the letter was
musicROCKS013
Scratcher
1000+ posts

How do i put punctuation in my Notes "app" project??

kattcrazy wrote:

It was just…. If i had the costume switched to Dash (“-”) then when i clicked any not-letter/number key, like a full stop,it did a dash. If i did a letter, then a full stop, the full stop would look like an “a” or whatever the letter was
This is because the costume isn't changing, because it doesn't recognize that character. Since the costume isn't changing, it stays the same as it was previously, and displays the last character printed.
kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

musicROCKS013 wrote:

kattcrazy wrote:

It was just…. If i had the costume switched to Dash (“-”) then when i clicked any not-letter/number key, like a full stop,it did a dash. If i did a letter, then a full stop, the full stop would look like an “a” or whatever the letter was
This is because the costume isn't changing, because it doesn't recognize that character. Since the costume isn't changing, it stays the same as it was previously, and displays the last character printed.

So why wasnt it detecting the full stop then…. It worked for you!
kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??

musicROCKS013 wrote:

kattcrazy wrote:

It was just…. If i had the costume switched to Dash (“-”) then when i clicked any not-letter/number key, like a full stop,it did a dash. If i did a letter, then a full stop, the full stop would look like an “a” or whatever the letter was
This is because the costume isn't changing, because it doesn't recognize that character. Since the costume isn't changing, it stays the same as it was previously, and displays the last character printed.

But it knows what the spacebar is! It made that into a full stop!
musicROCKS013
Scratcher
1000+ posts

How do i put punctuation in my Notes "app" project??

kattcrazy wrote:

So why wasnt it detecting the full stop then…. It worked for you!
Remember to put a new if else block to watch for Next Letter to equal “full stop”

kattcrazy wrote:

But it knows what the spacebar is! It made that into a full stop!
??
kattcrazy
Scratcher
100+ posts

How do i put punctuation in my Notes "app" project??


It was just…. If i had the costume switched to Dash (“-”) then when i clicked any not-letter/number key OR spacebar, like a full stop,it did a dash. If i did a letter, then a full stop, the full stop would look like an “a” or whatever the letter was….

This is because the costume isn't changing, because it doesn't recognize that character. Since the costume isn't changing, it stays the same as it was previously, and displays the last character printed.

Powered by DjangoBB