Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Script to send an email?
- cobright
-
3 posts
Script to send an email?
This might be way beyond the scope of this language.
I'm writing a math practice game for my daughter. When a certain score is reached I would like it to send me an email or create some sort of persistent record of it. This is so I know that she is practicing often enough but lets her practice on her own schedule.
Anything?
I'm writing a math practice game for my daughter. When a certain score is reached I would like it to send me an email or create some sort of persistent record of it. This is so I know that she is practicing often enough but lets her practice on her own schedule.
Anything?
- ErnieParke
-
1000+ posts
Script to send an email?
There is no way for emails to be sent since Scratch was only intended to teach the concepts of programming, not be used for real programming, though there is a way to “create some sort of persistent record of it.”
Before I say, will your daughter be using the same account as you?
Also, hello cobright (&your daughter) and welcome to Scratch! I wish you both many great times here.
With respects,
ErnieParke
Before I say, will your daughter be using the same account as you?
Also, hello cobright (&your daughter) and welcome to Scratch! I wish you both many great times here.
With respects,
ErnieParke
- cobright
-
3 posts
Script to send an email?
Before I say, will your daughter be using the same account as you?
Yes. She's 9 and fairly trustworth with regards to not getting in and mucking about. My first thought was simply to monitor the usage of the program, but I don't think that will tell me how many times she reached the winning score.
Real programming language or not, I was able to muddle through and come up with a simple fun flash card program that I can customize the graphics on.
feel free to peek it at http://scratch.mit.edu/projects/11592863/#player
I have a feeling most of this could probably be done in a tenth the number of lines.
And it's still really rough
Cheers!
- ErnieParke
-
1000+ posts
Script to send an email?
Maybe not a tenth of the code, but it could certainly be reduced. Still, it's a good program and should be fun!Before I say, will your daughter be using the same account as you?
Yes. She's 9 and fairly trustworth with regards to not getting in and mucking about. My first thought was simply to monitor the usage of the program, but I don't think that will tell me how many times she reached the winning score.
Real programming language or not, I was able to muddle through and come up with a simple fun flash card program that I can customize the graphics on.
feel free to peek it at http://scratch.mit.edu/projects/11592863/#player
I have a feeling most of this could probably be done in a tenth the number of lines.
And it's still really rough
Cheers!
Anyway, I noticed a little bug in your program. I was getting some duplicate answers, like 13, 15, 15. You might want to fix that.

Also, about your original question. This should be fairly simple if you always have your daughter play in the Scratch editor. If she does, then you can simple create a list called “Progress” and add this code to your project:
when gf clickedBlank Line
wait until <not <(score) < [Some amount that the score needs to be to be recorded]>>
if <(username) = >
add (join(score)(join[: ](join(current [year v])(join[-](join(current [month v])(join[-](join(current [day v])(join[-](join(current [hour v])(join [-](current [minute v])))))))))) to [Progress v]
end
Sorry if that looked like a complicated mess. I could make a sample project with this code if you wanted, though don't forget, this only works only if your daughter plays in the Scratch editor. If you'd like a bit more flexibility, meaning you can play outside of the editor and on the project page itself, then you'll have to sacrifice the simplicity of the above code.
With regards,
ErnieParke
Last edited by ErnieParke (July 27, 2013 01:24:34)
- DotDash
-
1000+ posts
Script to send an email?
when gf clickedmake sure its a cloud variable.
wait until <not <(score) < >>
if <(username) = >
add (join(score)(join[: ](join(current [year v])(join[-](join(current [month v])(join[-](join(current [day v])(join[-](join(current [hour v])(join [-](current [minute v])))))))))) to [Progress v]
end
- ErnieParke
-
1000+ posts
Script to send an email?
If you're playing from the editor (and you're the creator of the project), then changes to variables will automatically be saved, cloud or no. So it doesn't have to be a cloud variable. Besides, that is a list, not a variable.when gf clickedmake sure its a cloud variable.
wait until <not <(score) < >>
if <(username) = >
add (join(score)(join[: ](join(current [year v])(join[-](join(current [month v])(join[-](join(current [day v])(join[-](join(current [hour v])(join [-](current [minute v])))))))))) to [Progress v]
end

With regards,
ErniePArke
- cobright
-
3 posts
Script to send an email?
Anyway, I noticed a little bug in your program. I was getting some duplicate answers, like 13, 15, 15. You might want to fix that.
Yes actually I was toying around with that. I had, and may revive, a little instruction stating that if two friends give the same answer then its a matter of chance which one is right. This is a cop out I know, but like I said, I'm a bit of a dilettante at this.
I do understand your fix for my problem though, thank you.
- lightningtow
-
39 posts
Script to send an email?
I noticed that bug too. Anyway, I looked at the project and it ROCKED!!! It was very good and I thing Disney was a good addition to it. Disney is the best thing in the world!Anyway, I noticed a little bug in your program. I was getting some duplicate answers, like 13, 15, 15. You might want to fix that.
Yes actually I was toying around with that. I had, and may revive, a little instruction stating that if two friends give the same answer then its a matter of chance which one is right. This is a cop out I know, but like I said, I'm a bit of a dilettante at this.
I do understand your fix for my problem though, thank you.

- lightningtow
-
39 posts
Script to send an email?
The signature is a joke. You don't have to do it.I noticed that bug too. Anyway, I looked at the project and it ROCKED!!! It was very good and I think Disney was a good addition to it. Disney is the best thing in the world!Anyway, I noticed a little bug in your program. I was getting some duplicate answers, like 13, 15, 15. You might want to fix that.
Yes actually I was toying around with that. I had, and may revive, a little instruction stating that if two friends give the same answer then its a matter of chance which one is right. This is a cop out I know, but like I said, I'm a bit of a dilettante at this.
I do understand your fix for my problem though, thank you.

Last edited by lightningtow (July 28, 2013 16:04:03)
- deck26
-
1000+ posts
Script to send an email?
Please don't necropost. That's not a scripting question and why should Scratch be using Gmail? What is scratch's Gmail name?
- NightcoreObviously
-
1 post
Script to send an email?
Hey
Imma user of Scratch
first of, what in the world were u guys thinking when u updated it!? Now everything is confusing and NOTHING- and I mean LITERALLY nothing- is saving.
I AM VERY ANGRY AT SCRATCH and might quite. So like, canya help me here??
- OOF
Imma user of Scratch
first of, what in the world were u guys thinking when u updated it!? Now everything is confusing and NOTHING- and I mean LITERALLY nothing- is saving.
I AM VERY ANGRY AT SCRATCH and might quite. So like, canya help me here??
- OOF
- deck26
-
1000+ posts
Script to send an email?
Why post this on someone else's old help topic? For the most part those helping here are volunteers and not members of the Scratch Team. I suggest you find a more apprpriate forum. Hey
Imma user of Scratch
first of, what in the world were u guys thinking when u updated it!? Now everything is confusing and NOTHING- and I mean LITERALLY nothing- is saving.
I AM VERY ANGRY AT SCRATCH and might quite. So like, canya help me here??
- OOF
- ScratchCatGoesMeow
-
63 posts
Script to send an email?
if your sister has scratcher rank,you can use cloud data and if username=yoursister blocks.
- deck26
-
1000+ posts
Script to send an email?
Why do you guy block so many people for no reason my sister and are cousin were blocked to day for no reason that so rude i dont know if this is the really email for them put still come on and know it wont let her make a new account that just messed up come on like this is my sister @Todorokisan and my cousin @_IzayaOrihara_ and you accuse them being someone else @-_Graysonnnn_- when there notYour post has nothing to do with Help with Scripts and doesn't belong here.
- deck26
-
1000+ posts
Script to send an email?
Still doesn't belong here. Use the Contact Us option to contact the Scratch Team - most people here are volunteers helping with scripting and nothing to do with your problem.It a problem they need to fixWhy do you guy block so many people for no reason my sister and are cousin were blocked to day for no reason that so rude i dont know if this is the really email for them put still come on and know it wont let her make a new account that just messed up come on like this is my sister @Todorokisan and my cousin @_IzayaOrihara_ and you accuse them being someone else @-_Graysonnnn_- when there notYour post has nothing to do with Help with Scripts and doesn't belong here.
- 1132262
-
1000+ posts
Script to send an email?
This may be true, however, this is a forum for help with And scripts, and as far as I'm concerned, contacting the Scratch Team about personal issues is, suprisingly, not a script. Furthermore, this is someone else's topic from 2013, and it is completely unrelated to reported people. If you need help for a relevant issue, please create a new topic instead of necroposting on someone else's. Additionally, that last piece of argument had no citation. It would be more convincing if you had proof that it was a problem for many Scratch users. Not that it would belong here, anyways.It might not be your problem but it's mine and many people that use Scratch find it as a problem.Still doesn't belong here. Use the Contact Us option to contact the Scratch Team - most people here are volunteers helping with scripting and nothing to do with your problem.It a problem they need to fixWhy do you guy block so many people for no reason my sister and are cousin were blocked to day for no reason that so rude i dont know if this is the really email for them put still come on and know it wont let her make a new account that just messed up come on like this is my sister @Todorokisan and my cousin @_IzayaOrihara_ and you accuse them being someone else @-_Graysonnnn_- when there notYour post has nothing to do with Help with Scripts and doesn't belong here.
Also, everything that deck26 stated was correct, and arguing about things like these will rarely create desirable outcomes for anyone.
Thank you for understanding.
Last edited by 1132262 (April 2, 2019 05:39:17)
- codehero29
-
20 posts
Script to send an email?
How about adding her achievements to a list so you can look at her triumphs? Like, when she answers 20 correct answers in a row, it adds that to a list of achievements?
You can even program an achievement page with little indicators of whether she's earned them yet.
- codehero29
-
20 posts
Script to send an email?
Maybe you can program an activity monitor that records the date and time when she starts the project.
Last edited by codehero29 (April 2, 2019 11:17:17)
- deck26
-
1000+ posts
Script to send an email?
This topic is old and is unlikely still to be a problem. How about adding her achievements to a list so you can look at her triumphs? Like, when she answers 20 correct answers in a row, it adds that to a list of achievements?You can even program an achievement page with little indicators of whether she's earned them yet.
- spicelover
-
1 post
Script to send an email?
HI. I'm new to scratch can somebody please give me tricks to help me for making new games?
- Discussion Forums
- » Help with Scripts
-
» Script to send an email?