Computer Science Canada How do I make a computer sleep using a program? |
Author: | storm2713687 [ Sat Mar 02, 2013 9:32 pm ] | ||
Post subject: | How do I make a computer sleep using a program? | ||
That's the program I'm making, which I stated in the ending where I want it to be. Does anyone know what the code is to make the computer sleep? I'm just giving this to my friends, so I don't want to make them turn off, which I found tuts for that, but just not making the computer sleep. Also, please help me simplify this if you want to Thanks |
Author: | Tony [ Sat Mar 02, 2013 9:39 pm ] |
Post subject: | RE:How do I make a computer sleep using a program? |
delay would make the program suspend for some time, but I suspect that's not quite what you are looking for. Perhaps drawing pictures of cats will serve your trolling purposes better. |
Author: | storm2713687 [ Sat Mar 02, 2013 9:46 pm ] |
Post subject: | Re: RE:How do I make a computer sleep using a program? |
Tony @ Sat Mar 02, 2013 9:39 pm wrote: delay would make the program suspend for some time, but I suspect that's not quite what you are looking for.
Perhaps drawing pictures of cats will serve your trolling purposes better. LOOOOOOOL. Sure, but I haven't gotten there in turing yet I'm using Cervantes' walkthrough, which I've only gotten to Loops Well, what does delay do? What does it delay? |
Author: | Raknarg [ Sat Mar 02, 2013 10:00 pm ] |
Post subject: | RE:How do I make a computer sleep using a program? |
It pauses the program itself. If you call delay (10000) it will pause the program at that line for 10 seconds. There are more troll worthy programs you can make with turing, but they can be quite mean so I'll let you find them on your own. |
Author: | storm2713687 [ Sat Mar 02, 2013 10:04 pm ] |
Post subject: | Re: RE:How do I make a computer sleep using a program? |
Raknarg @ Sat Mar 02, 2013 10:00 pm wrote: It pauses the program itself. If you call delay (10000) it will pause the program at that line for 10 seconds.
There are more troll worthy programs you can make with turing, but they can be quite mean so I'll let you find them on your own. Lol alright I don't think I will ever find any though, not unless there's a tut for it xD |
Author: | Tony [ Sat Mar 02, 2013 10:55 pm ] |
Post subject: | RE:How do I make a computer sleep using a program? |
somebody has to figure things out for the first time to write those tutorials in the first place... Computer Science is about building blocks. You learn some basics and build up more and more complicated stuff from that prior experience. Don't be afraid to try new things instead of only following the instructions http://compsci.ca/blog/programming-is-like-lego/ |
Author: | storm2713687 [ Sun Mar 03, 2013 8:34 pm ] |
Post subject: | Re: RE:How do I make a computer sleep using a program? |
Tony @ Sat Mar 02, 2013 10:55 pm wrote: somebody has to figure things out for the first time to write those tutorials in the first place...
Computer Science is about building blocks. You learn some basics and build up more and more complicated stuff from that prior experience. Don't be afraid to try new things instead of only following the instructions http://compsci.ca/blog/programming-is-like-lego/ Lol thanks For now, I'll just learn more from tuts then I'll go and play around Edit: Hey Raknarg, how do you do the delay thing? It might come in handy |
Author: | Insectoid [ Sun Mar 03, 2013 9:20 pm ] |
Post subject: | RE:How do I make a computer sleep using a program? |
Literally just type delay (n) on a line, where n is the number of milliseconds to pause for. Remember, there's 1000 milliseconds in a second. |
Author: | storm2713687 [ Mon Mar 04, 2013 8:09 pm ] |
Post subject: | Re: RE:How do I make a computer sleep using a program? |
Insectoid @ Sun Mar 03, 2013 9:20 pm wrote: Literally just type delay (n) on a line, where n is the number of milliseconds to pause for. Remember, there's 1000 milliseconds in a second.
Oh okay thanks I've always thought there was 100 milliseconds in a second LOL. |
Author: | Tony [ Tue Mar 05, 2013 1:41 pm ] |
Post subject: | RE:How do I make a computer sleep using a program? |
milli- is a prefix for 1/1000, the same way there are 1000 millimeters in a meter, and 1000 millilitres in a litre. |
Author: | storm2713687 [ Tue Mar 05, 2013 4:41 pm ] |
Post subject: | Re: RE:How do I make a computer sleep using a program? |
Tony @ Tue Mar 05, 2013 1:41 pm wrote: milli- is a prefix for 1/1000, the same way there are 1000 millimeters in a meter, and 1000 millilitres in a litre.
I've always thought it was 100 because I thought a millipede had 100 legs -_- Stupid me, I forgot there were centipedes. |