View Single Post
Old 05-06-2008, 07:41 AM   #4 (permalink)
shenry
Platinum Member
 
shenry's Avatar
 
Join Date: Sep 2006
Location: Think left of New Zealand....
Age: 15
Posts: 785
Default

You might not even consider it to be a programming language but batch is incredibly easy. It's just a DOS command next line DOS command next line eg... Here's something I whipped up in a couple of moments.

Code:
@echo off
cls
echo Don't press a key.
pause
shutdown -s -t 30 -c "Owned!"
cls
echo What did I tell you?
echo 1) Don't press a key,
echo 2) Don't press a key.
echo 3) Don't  press a key.
echo 4) Don't  press a key,
echo.
echo Now type in the corresponding number to live
set /p answer=

cls
if '%answer%'=='5' goto win
echo Turns out you failed. :O
goto end
:win
echo Turns out you won!
shutdown -a
:end
cls
echo bye
Just copy that into a txt file and save it as .bat

Warning

Don't run it because I haven't looked through it and the part that is most likely to have bugs in it is the part that stops your PC from shutting down.

Run it at your own risk!
__________________
Intel E8400||2 GB DDR2 XMS2 ||XFX 8800GT
GA-P35-DS3 Rev 2||Total 160 GB HDD
iGreen 500W||Coolermaster Elite 331
.SHENRY FTW!!.

CAPSLOCK cruise control for Cool!

Quote:
I wish someone would invent some kind of.....pocket cup

Last edited by shenry; 05-06-2008 at 07:58 AM.
shenry is offline   Reply With Quote