loading
Hi, I'm wazupwiop, and this is my first instructable. In this instructable I will show you how to make a basic text movie in batch. I recommend you see the text star wars movie in another instructable for motivation, encoragement, and to see what can be done. Download the .bat file below. It might say it is a tmp file, but rename it to stick.bat I also recommend that you READ EACH STEP COMPLETELY AND THOROUGHLY BEFORE ATTEMPTING

Step 1: Some Basic Batch Commands

ok here are some basic batch commands, and what they do:

@ before a command- ex. @echo off- it doesn't allow echo to be seen in the text video
@echo on- allows it to be seen

pause- makes the viewer push a button before moving on

echo-(make sure there is a space between echo and what you want to say) echo, before a string of words, lets them be seen in your command prompt. THERE ARE SOME SYMBOLS THAT ARE NOT ALLOWED LIKE: | < > to name a few the line is shift+\ buttons

cls- clears screen of what your viewing

exit-exits command prompt

these are mostly what I use to make my movies, but if you learn more that is great

this is a command prompt window

Step 2: Example of a Movie

"@ECHO OFF
ECHO HI, I AM STICK MAN
ECHO.
ECHO O
ECHO -[]-
ECHO /\


pause

cls

echo I KNOW Kung-fu! HI YA!
echo.
echo O l l o
echo -[]- -[]-
echo /\____________/\___L_____o

pause

cls

ECHO poor man, boo hoo (puts weopon down)
ECHO.
ECHO O
ECHO -[]-
ECHO /\ l_______________L______o

pause

cls

Echo Lets pick him up
echo.
echo O
echo []-L
echo _____________/\__\_____o_______

pause

cls

ECHO ARG!
ECHO L
ECHO ii
ECHO O
ECHO []
ECHO /\

pause

cls

ECHO WOOPS!!!!
Echo.
ECHO o
ECHO []__ _
ECHO O
ECHO []-
ECHO _______________/\

pause

Cls

ECHO AHHHHHH!
ECHO ______ ________
ECHO I [] I I [] I
ECHO I [] I o I [] I
ECHO I [] I []__ I [] I

pause

Cls

ECHO AHHHHHH! (cont.)
ECHO ______ ________
ECHO I[] I I[][] I
ECHO I []I o I []I
ECHO I[] I []__ I [] I

pause

cls

ECHO BOOM (hits wall)
ECHO 1
ECHO 1 O
ECHO 1[]__
ECHO 1
ECHO 1

pause

cls

ECHO OWWWW!!!!!! leaves impression in wall and is covered in debris
ECHO.
ECHO 1
ECHO 1
ECHO.
ECHO L[[[[[]o

pause

cls

ECHO stick man to the rescue

pause

cls

ECHO picks man up, brushes him off, and sets him on his feet (he is wearing a cape)
ECHO.
ECHO o O _____
ECHO []-[]
ECHO L II

pause

cls

ECHO Stick man says: Let's be friends
ECHO the dude says: sure
ECHO and they were friends, they shook on it
ECHO.
ECHO o O
ECHO []\/[]
ECHO L II

pause

cls

ECHO THE END

pause

cls

ECHO movie made by LEVO GAMES

pause

cls

exit"

paste everything in the quotation marks. DON'T PASTE QUOTATION MARKS!!!!!

another thing is that it might not appear right in your command prompt window, because of the system you are using (i use xp)

you're better off with the batch file included because this is a little messed up.






Step 3: Starting the Making of Your Movie

OK!!!!! you have probably watched my video by now. If you are new to batch you are probably wondering how I did that. Well I'll show you. First we need artwork out of text like so (make your own, but don't use illegal symbols):



O
-[]-
/\

O_____
-[]
/\

These two stick dudes were in my movie

Step 4: PROGRAMMING

OK. So you have your art, your commands, your computer, and command prompt. So know your wondering,"What order do I put them in?" Well I'll show you here. Look at my movie to see an example.

OK notice how I began:
@ECHO
put that at the beginning to make echo not appear.

Then put echo for every line after that. (that you want text after, "echo." with no quotes will make a blank line) Like so:

echo HI I AM STICKY
echo O
echo []
echo /\

THEN (this is important) put PAUSE and CLS like so:

pause

cls

REMEMBER YOU WANT THE VIDEO WATCHER TO SEE YOUR TEXT BEFORE THE SCREEN CLEARS!!!!!!!

Do this above for how ever many screens/pictures you want to show.

this is an example of a batch program (not a movie though)

Step 5: THE ENDING!!!!!! SO EXCITING

SO...... I've made my art, programmed it, and I think I have done it right so far (PM me with the art and programming and I might be able to troubleshoot it if yours doesn't work), How do I end it? I'll tell you now.

up here is where your last pic is

pause so the viewer can see it

cls so the screen clears

Exit should be the last thing on there

Step 6: Final Thoughts, Suggestions, and Troubleshooting Tips

ok final thoughts:
caps DO nOt MaTTeR
always put a period after an echo for a blank line
save your movie as .bat ALWAYS

suggestions:
BE NEAT programming long scripts can be hard if it isn't neat
you can put your commands in ALL CAPS to make them more identifiable
after your first screen you can save as whatever.bat so you can check your work, and all you have to do is save and open your file and changes are there


Troubleshooting:
if it skips a screen make sure your pause is before your cls
random events can happen if you use illegal characters and text.
umm......... I almost always have to troubleshoot
I use XP you may use ME, 2000, 98, 95, or something else. Learn commands for your system (there are only minor differences)

a batch file icon looks somthin like this


<p>Gonna necro this, but couldn't you literally just put:</p><p>timeout (time to stop) /nobreak &gt;nul</p><p>cls</p><p>instead of forcing user interaction?</p>
Probably. I was 13 when I wrote the instructable. I have never bothered to learn all of the different features of batch, so I am sure that my instructable is outdated and probably wasn't the most ideal way to write text movies. :)
is it possible to add a pause in a batch file?
yes, but can be VERY VERY HARD if you don't know what you are doing
Elaborate?
he is joking, all you do is type pause on the next line.
sorry i wasn't very specific. I meant a way for the program to wait for a preditermined amount of time, and then execute the next command. I think in vbs the command is sleep
<p>The most simple command would be:</p><p>timeout /t 30 - it makes the batch file wait 30 seconds, but if a key is pressed, it continues.</p><p>timeout /t 30 /nobreak - it makes the batch file wait 30 seconds, it doesn't matter, if the key is pressed or not, it'll wait 30 seconds.</p><p>timeout /t 30 /nobreak &gt; nul - it makes the batch file wait 30, it won't be affected by the users key presses and is not visible to the user.</p><p>*Note: you can change the seconds (in this case the number 30) to as much seconds as you want.</p>
ping localhost -n 2 &gt;nul<br>in which the 2 is how many seconds it waits before it continues. Hope this helped.
There are two ways I know of how to delay. The first one is easy and the other one is hard. You can go look on google for batch sleep, download a program and install to have a nifty sleep command, or you can use this code.<br/><br/>set max=100<br/><br/>set number=0<br/>:loop1<br/>set /p number=number+1<br/>if %number% equ %max% goto end1<br/>goto loop1<br/>:end1<br/><br/>I have used this code for batch movies before. The only problem is that for each pause you want you have to copy and paste the code (except the max variable which resides at the beginning of the file) and add one to the numbers (like end1 would become end2, loop1 would become loop2, etc.). The max variable sets the amount of delay, but the amount of delay can vary depending on the speed of your system.<br/><br/>I don't guarantee that the code works because I am on my linux computer and can't pull up the file at the moment. If it doesn't work it probably just needs a small change (so google is your friend).<br/>
thx
Wait, I try this and cmd just pops up with "number+1"
I'm sorry. I spaced out when I wrote that code. The /p flag is the prompt flag so it asks you to enter a value. The /a flag is what you want. Here is the real code, and this time I guarantee that it will work because it is from one of my movies.<br/><br/>set _number=0<br/>:loop1<br/>if %_number%==%_max% goto end1<br/>set /a _number=_number + 1<br/>goto loop1<br/>:end1<br/><br/>Just follow do the same thing to the code for each pause like I said before and it should work.<br/>
ok
Yep. ASCII is H-A-R-D.
yes it is possible to do this, i use it a lot in the programs i make with batch put this into it's own line ping localhost -n 2 >nul this means wait two seconds you can replace the 2 with how many seconds you want it to wait Hope i was of help i came up with this myself
THANK YOU SO MUCH! Been doing .bat (for fun) for a year now... couldn't find that anywhere... -cheers, Chris
<p>Should do this</p><p>@echo off</p><p>title Example</p><p>echo 0</p><p>echo /l\</p><p>echo /\</p><p>timeout 1</p><p>echo __/___\_____/___0__\___</p><p>echo he is dead</p><p>echo this is an example set by Newbie to Profession</p><p>checkout at more commands at </p><p><a href="https://www.instructables.com/id/April-Fools-Day-batch/" rel="nofollow">https://www.instructables.com/id/April-Fools-Day-batch/</a></p><p>adn you will find my explaination for the code i added in</p>
<p>@echo off</p><p>Title=In The Forest</p><p>Echo ______ </p><p>Echo/\__ _\ </p><p>Echo\/_/\ \/ ___ </p><p>Echo \ \ \ /' _ `\ </p><p>Echo \_\ \__/\ \/\ \ </p><p>Echo /\_____\ \_\ \_\</p><p>Echo \/_____/\/_/\/_/</p><p>pause</p><p>Echo ______ __ </p><p>Echo/\__ _\/\ \ </p><p>Echo\/_/\ \/\ \ \___ __ </p><p>Echo \ \ \ \ \ _ `\ /'__`\ </p><p>Echo \ \ \ \ \ \ \ \/\ __/ </p><p>Echo \ \_\ \ \_\ \_\ \____\</p><p>Echo \/_/ \/_/\/_/\/____/</p><p>pause</p><p>Echo ___ _ </p><p>Echo / __\__ _ __ ___ ___| |_ </p><p>Echo / _\/ _ \| '__/ _ \/ __| __|</p><p>Echo / / | (_) | | | __/\__ \ |_ </p><p>Echo \/ \___/|_| \___||___/\__|</p><p>pause</p><p>WHY NO WORK??? </p>
You shoild learn about the<br>Color [number] [number] comment
Thought I might try a possible nix version?[<br><br>[code]<br># case matters<br>clear<br><br>echo &quot; HI, I AM STICK MAN&quot;<br>echo &quot;.&quot;<br>echo &quot; O&quot;<br>echo &quot; -[]-&quot;<br>echo &quot; /\\&quot;<br><br><br>read a<br> <br>clear<br><br>echo &quot; I KNOW Kung-fu! HI YA!&quot;<br>echo &quot;.&quot;<br>echo &quot; O l l o &quot;<br>echo &quot; -[]- -[]-&quot;<br>echo &quot; /\\____________/\___L_____o &quot;<br><br>read a<br><br>clear<br><br>echo &quot; poor man, boo hoo (puts weopon down)&quot; <br>echo &quot;.&quot;<br>echo &quot; O&quot;<br>echo &quot; -[]-&quot;<br>echo &quot; /\\ l_______________L______o&quot;<br><br>read a<br> <br>clear<br><br>echo &quot;Lets pick him up&quot;<br>echo &quot;. &quot;<br>echo &quot; O&quot;<br>echo &quot; []-L&quot;<br>echo &quot; _____________/\\__\_____o_______&quot;<br><br>read a<br><br>clear<br><br>echo &quot; ARG!&quot;<br>echo &quot; L&quot;<br>echo &quot; ii&quot;<br>echo &quot; O&quot;<br>echo &quot; []&quot;<br>echo &quot; /\\&quot;<br><br>read a<br><br>clear<br><br>echo &quot; WOOPS!!!!&quot;<br><br>echo &quot;.&quot;<br>echo &quot; o&quot;<br>echo &quot; []__&quot; _<br>echo &quot; O&quot; <br>echo &quot; []-&quot;<br>echo &quot; _______________/\\&quot;<br><br>read a<br><br>clear<br><br>echo &quot; AHHHHHH!&quot;<br>echo &quot; ______ ________&quot;<br>echo &quot; I [] I I [] I&quot;<br>echo &quot; I [] I o I [] I&quot;<br>echo &quot; I [] I []__ I [] I&quot;<br><br>read a<br><br>clear<br><br>echo &quot; AHHHHHH! (cont.)&quot;<br>echo &quot; ______ ________&quot;<br>echo &quot; I[] I I[][] I&quot;<br>echo &quot; I []I o I []I&quot;<br>echo &quot; I[] I []__ I [] I&quot;<br><br>read a<br><br>clear<br><br>echo &quot; BOOM (hits wall)&quot;<br>echo &quot; 1&quot;<br>echo &quot; 1 O&quot;<br>echo &quot; 1[]__&quot;<br>echo &quot; 1&quot;<br>echo &quot; 1&quot;<br><br>read a<br><br>clear<br><br>echo &quot; OWWWW!!!!!! leaves impression in wall and is covered in debris&quot;<br>echo &quot;.&quot;<br>echo &quot; 1&quot; <br>echo &quot; 1&quot;<br>echo &quot;. &quot;<br>echo &quot; L[[[[[]o&quot;<br><br>read a<br><br>clear<br><br>echo &quot; stick man to the rescue&quot;<br><br>read a<br><br>clear<br><br>echo &quot; picks man up, brushes him off, and sets him on his feet (he is wearing a cape)&quot;<br>echo &quot;.&quot;<br>echo &quot; o O _____&quot;<br>echo &quot; []-[] &quot;<br>echo &quot; L II&quot;<br><br>read a<br><br>clear<br><br>echo &quot; Stick man says: Let's be friends&quot;<br>echo &quot; the dude says: sure&quot;<br>echo &quot; and they were friends, they shook on it&quot;<br>echo &quot;.&quot;<br>echo &quot; o O &quot;<br>echo &quot; []\\/[] &quot;<br>echo &quot; L II&quot;<br><br>read a<br><br>clear<br><br>echo &quot; THE END&quot;<br><br>read a <br><br>clear<br><br>echo &quot; movie made by LEVO GAMES and modded by computothought&quot;<br><br>read a <br><br>exit<br>[/code]
You know you can just do:<br/><br/>echo 0<br/>echo /<sup>|\</sup><br/>echo /\<br/><br/>to make cmd actually <em>type</em> | not <em>execute</em> it.<br/>
no no i mean 0 /|\ /\
or just fake it: 0 /!\ /\
It seems that my stick man has been chopped.
<pre> 0/^|\/\</pre><br/>is what I mean.<br/>
i made an animation of a guy shooting sum1, and it loops witout pressin buttons
what code do u use to make it loop
to make a batchfile loop, you need to define the start and end of the loop.<br /> The start of the loop is done using a colon followed by the loop name. [:loopname] the first time the loop is instantiated, the loop name ([:loopname]) will not effect the code.&nbsp; once your code reaches a point when you want it to repeat all the code after the loop name use a goto [goto loopname] without a colon.&nbsp; here's an example of a 'program' that outputs cheez indefinitely until stopped.<br /> :cheezloop<br /> echo cheez<br /> goto cheezloop<br /> <br /> That's it!<br /> if you want to use a counted loop (one that only runs a specified number of times, you need to use a variable, a set /a and an if statement.&nbsp; let me know if I should post on how to use counted loops in batch files.
<pre>:loopecho This is a loop!goto loop</pre>
"Goto start" probably. Make sure you have start where you want it to loop from.
idk
whats wrong with my code when im running it it says echo is off<br /><br />@ECHO OFF<br />ECHO HI, I AM STICK MAN<br />ECHO.<br />ECHO O<br />ECHO -[]-<br />ECHO /\<br /><br />pause<br /><br />cls<br /><br />ECHO HI, I AM STICK MAN 2<br />ECHO.<br />ECHO O<br />ECHO -[]-<br />ECHO /\<br /><br />pause<br /><br />cls<br /><br />ECHO<br />ECHO<br />ECHO STICK MAN1 : SHALL WE HAVE A FIGHT<br />ECHO<br />ECHO STICK MAN2 : YES<br /><br />pause<br /><br />cls<br /><br />THATS AS FAR AS I GOT AND IT DIDNT WORK WHY?
you have lines with just echo. I assume you wanted empty lines there, in which case, you needed to use echo with a period [echo.] when you use echo without an argument such as a string to output, it just tells you the state of echo, because you set echo to off with [@echo off] it tells you [echo is off].<br />
good instractble, funny idea and good time user for being bored in class.. some helpful tips! using a ping code will get rid of the pesky "Press any key to continue.." thing. A code like this will allow you to set a time you want it to pause and not have to push anything, this can make for slowmotion picture clips, or fast paced animations. code: ping locaholst 2<null the number 2 represents the time(in seconds) that it will pause. very usefull Also, check out this amazing animation someone did and posted for all to see in order to view, run your command prompt (start, run, cmd) and type in: telnet c towel.blinkenlights.nl really cool.. great instrucatble!!
ping <em><strong>localhost</strong></em> 2&lt;<em><strong>nul</strong></em><br/>
And telnet doesn`t work with Wine
about ping... it doesn`t work with Wine (Windows Emulator).
nice 'ible! however, on some of the "scenes" I can bearly see the people. nice tho! P.S. check out my 'ible for a different mini movie!
I would much rather not talk about the actually presentaion (shiver) but rather how about you try to you the pause >nul comand? It gets rid of "Press any key to contiune..."
Nice one one problem whenever I try to watch mine not yours CMD pops up for a mo' the disappears wot did I do wrong? Faved
I meant when I try to watch my movie ... see above
send me your movie in a pm and i'll take a look at it. (i may add more advanced commands so stick around)
nice work! was it <a rel="nofollow" href="https://www.instructables.com/id/find-hidden-stuff-in-windows-xp/">this instructable</a> that you were talking about in the front page of your instructable?<br/>
there are a few that mention that
np
thanks this helped ALOT!
its ok i figuired it owt.
i dunno wat 2 do
what do you mean?

About This Instructable

25,086views

13favorites

License:

More by wazupwiop:Text-Controlled Raspberry Pi Javascripting Your RaspberryPi Start Your Own Business 
Add instructable to: