Saturday, March 31, 2012

Matrix Coding


     Next Trick that I’m gonna show you is to create similar to the Coded-Screen From the movie Matrix!! The screen where random numbers appear in the movie and a techie sits right in front of the computer and guides “Neo” through all troubles.Anyway if you don’t have an idea just have a look at the matrix screen from the following youtube link here[http://www.youtube.com/watch?v=uEu121sT-3w&feature=related].

     Lets try to create a similar screen just by using a notepad.Just Copy paste the following code into your Notepad and save the file as Matrix.bat.”Matrix” is not necessary, you can save it with whatever name you wish but its important that you save it with .bat extension.
Here’s the code.

****************************
@echo off

color 02es

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

goto start
****************************


This is nothing but usage of few simple notepad commands to create out Matrix screen.Let us understand what these commands do and how they function in brief.
Echo - Echos the screen.
Color – Displays the text content in the color that you mentioned.
:- This is similar to the “go-to” marker in C-Language. (Not a problem if you’re not experienced with C-Language. Just thought you should know)
%random – This prints a random number on the screen.
goto – this points that the function must be passed to “start” again to make it an indefinite loop.

No comments:

Post a Comment