Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Snap! user discussion
- jla
- Scratcher
1 post
Snap! user discussion
A friend familiar with Scratch is planning on making a program for a contest but one of the requirements is that the program exit when they press escape.
BYOB 3's compiled (to exe) project created a program that ran full screen in presentation mode and responded to the escape key by exiting presentation mode and the program (0).
Snap has a link to a nice online executable creator (1) that is very flexible but it doesn't respond to escape in the same way.
Is there a way to get Snap's executable to respond to escape and exit the program?
If not, is there a way to import Snap's project into BYOB 3 or will they need to re-implement the program in BYOB 3?
0. http://wiki.scratch.mit.edu/wiki/Presentation_Mode#BYOB_Executable_Files
1. http://snapp.citilab.eu/
Thank you,
Jacob
BYOB 3's compiled (to exe) project created a program that ran full screen in presentation mode and responded to the escape key by exiting presentation mode and the program (0).
Snap has a link to a nice online executable creator (1) that is very flexible but it doesn't respond to escape in the same way.
Is there a way to get Snap's executable to respond to escape and exit the program?
If not, is there a way to import Snap's project into BYOB 3 or will they need to re-implement the program in BYOB 3?
0. http://wiki.scratch.mit.edu/wiki/Presentation_Mode#BYOB_Executable_Files
1. http://snapp.citilab.eu/
Thank you,
Jacob
Last edited by jla (Jan. 13, 2016 16:48:37)
- bharvey
- Scratcher
1000+ posts
Snap! user discussion
Is there a way to get Snap's executable to respond to escape and exit the program?
If not, is there a way to import Snap's project into BYOB 3 or will they need to re-implement the program in BYOB 3?
No and no, I'm afraid. Maybe Citilab could add an exit feature to Snapp!; it seems like a good idea. I'll forward the request.
EDIT: Hmm, I wonder if you could easily implement it yourself using the JS Function block?
Last edited by bharvey (Jan. 13, 2016 17:13:50)
- bromagosa
- Scratcher
4 posts
Snap! user discussion
Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
- liam48D
- Scratcher
1000+ posts
Snap! user discussion
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
202e-202e-202e-202e-202e UNI-CODE~~~~~
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
I don't think Node has the rights to do that unless you sudoRunning fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
- liam48D
- Scratcher
1000+ posts
Snap! user discussion
But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )I don't think Node has the rights to do that unless you sudoRunning fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
202e-202e-202e-202e-202e UNI-CODE~~~~~
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
You couldn't do `rm -rf ~jay`But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )I don't think Node has the rights to do that unless you sudoRunning fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
- liam48D
- Scratcher
1000+ posts
Snap! user discussion
aww? I should testYou couldn't do `rm -rf ~jay`But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )I don't think Node has the rights to do that unless you sudoRunning fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
rm -rf ~/*
202e-202e-202e-202e-202e UNI-CODE~~~~~
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
No, it would have to be ~/jay.aww? I should testYou couldn't do `rm -rf ~jay`But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )I don't think Node has the rights to do that unless you sudoRunning fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.pngalso fyi your code would only work if you had a folder inside your home folder called jay.rm -rf ~/*
When you have a ~ and then a username, it refers to the home folder of that user.
For example, if I wanted to poke around the home folder of “dmr”, I would go ~dmr/c_programming_language.tex
- Hardmath123
- Scratcher
1000+ posts
Snap! user discussion
Well, uh, technically:No, it would have to be ~/jay.aww? I should testYou couldn't do `rm -rf ~jay`But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )I don't think Node has the rights to do that unless you sudoRunning fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.pngalso fyi your code would only work if you had a folder inside your home folder called jay.rm -rf ~/*
When you have a ~ and then a username, it refers to the home folder of that user.
For example, if I wanted to poke around the home folder of “dmr”, I would go ~dmr/c_programming_language.tex
~jay means /home/jay
~/jay/ means /home/currentuser/jay/
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
Thanks!Well, uh, technically:No, it would have to be ~/jay.aww? I should testYou couldn't do `rm -rf ~jay`But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )I don't think Node has the rights to do that unless you sudoRunning fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory! Indeed, Brian's idea is the way to go.
Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.pngalso fyi your code would only work if you had a folder inside your home folder called jay.rm -rf ~/*
When you have a ~ and then a username, it refers to the home folder of that user.
For example, if I wanted to poke around the home folder of “dmr”, I would go ~dmr/c_programming_language.tex
~jay means /home/jay
~/jay/ means /home/currentuser/jay/
So if I were logged in as root, it would be /root/jay, right? Regardless of whether there is a /root/jay or not?
This is probably a stupid question
Also, I started publishing my answers to the SICP exercises in a github repo. I can't guarantee the answers to be correct, but I just wanted to share it here
- Tymewalk
- Scratcher
1000+ posts
Snap! user discussion
I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?
Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
Can I use the following information, or will this get me into some trouble?
Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
bold thing - italic thing - underlined thing - strikethrough thing
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
Why not just use your normal birthday? Snap! is for all ages. I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?
Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
For the last one you can use a disposable email address.
- Tymewalk
- Scratcher
1000+ posts
Snap! user discussion
What do you mean by “disposable”?Why not just use your normal birthday? Snap! is for all ages. I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?
Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
For the last one you can use a disposable email address.
bold thing - italic thing - underlined thing - strikethrough thing
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
http://www.lmgtfy.com/?q=disposable+email&l=1What do you mean by “disposable”?Why not just use your normal birthday? Snap! is for all ages. I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?
Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
For the last one you can use a disposable email address.
- Tymewalk
- Scratcher
1000+ posts
Snap! user discussion
I don't see why example.com doesn't work just as good.http://www.lmgtfy.com/?q=disposable+email&l=1What do you mean by “disposable”?Why not just use your normal birthday? Snap! is for all ages. I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?
Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
For the last one you can use a disposable email address.
bold thing - italic thing - underlined thing - strikethrough thing
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
Because it might need to send an actual email to confirm something, and with a disposable email you can use the email for a while, confirm the account, and then throw it away.I don't see why example.com doesn't work just as good.http://www.lmgtfy.com/?q=disposable+email&l=1What do you mean by “disposable”?Why not just use your normal birthday? Snap! is for all ages. I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?
Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
For the last one you can use a disposable email address.
- Jens
- Scratcher
100+ posts
Snap! user discussion
When you sign up we'e sending you an email with an initial password. That's why you need to enter an email address that actually exists and that reaches you. Your age is not stored anywhere in the data base, we just use that information to tell you to get your parents' consent to sign up when you're under 13, because there are laws suggesting so. Again, we are not interested in your age, we don't store it anywhere.
- Tymewalk
- Scratcher
1000+ posts
Snap! user discussion
Ah, OK. I set it up and actually published my first project with Snap! When you sign up we'e sending you an email with an initial password. That's why you need to enter an email address that actually exists and that reaches you. Your age is not stored anywhere in the data base, we just use that information to tell you to get your parents' consent to sign up when you're under 13, because there are laws suggesting so. Again, we are not interested in your age, we don't store it anywhere.
But I have one problem: how do I see other people's published projects?
bold thing - italic thing - underlined thing - strikethrough thing
- ChocolatePi
- Scratcher
1000+ posts
Snap! user discussion
You can share it here. Right now there's no community system.Ah, OK. I set it up and actually published my first project with Snap! When you sign up we'e sending you an email with an initial password. That's why you need to enter an email address that actually exists and that reaches you. Your age is not stored anywhere in the data base, we just use that information to tell you to get your parents' consent to sign up when you're under 13, because there are laws suggesting so. Again, we are not interested in your age, we don't store it anywhere.
But I have one problem: how do I see other people's published projects?