Tuesday 18 November 2014

Hi friends welcome back, today i'm going to do some fun using notepad and some batch programming.If you have any past  experience with coding or programming then it's good for you or you are just started with programming then don't fear i make this  tutorial simple for you guys.If you have any type of problem then just comment below.

Matrix Effect

Before i start this  tutorials i like to show you what is a Matrix Effect.


Step -1: Open up the Notepad and paste below code in that,

@echo off
:loop
COlor 0A
Title J J f f g g g g
echo 0 A 0 1 1 1 A 0 1 0 1 0 7 7 8 9 9 1 0 1 0 1 A 1 0 a d d f f 1 0 8 s 5 7 r 6 d 6  
echo 0 0 0 0 0 0 0 0 1 A 0 A 1 0 A 1 1 1 1 0 A 1 0 A 5 5 6 7 a n k k k 4 g f 5 g D 5
echo 0 1 0 1 0 A B J 0 3 4 0 1 0 1 0 1 B A A O i d d 3 3 4 4 6 7 7 g u 6 d 4 f 4 f 4
echo 0 2 3 1 1 1 5 5 6 5 6 8 9 5 4 5 4 5 5 4 5 5 6 4 f f f g j d g d f g d 7 g a 4 f 6 8
echo 2 4 5 6 5 5 6 5 9 4 5 7 7 7 7 8 9 9 0 66 6 1 5 5 6 4 5 5 8 6 4 4 6 4 5 d 2 1 e
goto :loop 

Step -2: save this note as matrix.bat
Step -3: Run the .bat file and you done.

Explanation of the code

First word "echo" is used to tell the pc that it is a Batch file and about it mode "off" or "on".Here echo is off so the code is run in background.In second line "loop" is a variable which can be "int" or "float".You can change the Name "loop". In third line "color" will define the color of the effect.Here 0A is the code for Green ,go and change the value to 0B,0C to see what happened.Now in forth line Title is define the title of the code which you have written.Now here echo again and it's value.You can use what ever you want to use in this area under echo.and in the last line a goto function is used which run this loop again and again.and make the effect more real.   

Hope you like my tutorial.thank you

Subscribe to RSS Feed Follow me on Twitter!