How to make cool code running in the background like in TV Shows & Movies. (Matrix.bat)

I was Really facinated with code i saw running on computers in movies and shows like Arrow and Star Labs in The Flash.

Its actually not that hard,you can even do it,open several windows and leave it in your background so that people think you hacking or doing some dope PC stuff Lol.

I will show you how to do the same thing with very simple code with windows batch files.

First you have to do is to make a txt file.lets say text.txt



then rename it to matrix.bat

right click it and select Edit


Notepad will open and wite the following:
#################################################################################
@echo off

Title Tracking Reverse Flash

goto :SetGreen


:SetGreen
color a1 2>nul
goto :Start

REM Comment:you Can Change the value of  "(10-1)" bellow to "(99-1)"to allow random
REM background color change if you want it.you an aslo Add random word inside after "echo".


:Start
set /a color=%random% * (10-1) / 32767 + 1
color %color% 2>nul
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%Process%random%%random%51%random%
Echo %random%%random%Code%random%%random%%random%%random%%random%
Echo %random%%random%%random%J%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%Running%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
goto :start
#################################################################################
Your Code should look like this:


save it and open it.

congrats you now a Tv hacker

If you have windows ten you can take it an extra mile and make your command prompts transparent to make a cool effect.

Right click the title bar while your script is running
Select "properties"


goto to color tab and change the trasparency
60% will be fine.
click Ok.



>get a cool back ground and  open several scripts and lay them around


Customize and add more ways to make it Look Cool,We Done here.

More Additional Info if You need:

add The following Line before the last "goto :start" to other variations of the script that you will open
if %color% equ 9 goto :1
To clear a shot random clearing effect that also makes it look cool,as if its listing code


Reference of the Code for Rokies:

  1. @echo off  = to hide the command being run but only the output,as it looks weird without it,you can try changing "@echo off" to "@echo on" and see the difference,it becomes really useful when debuging and you have a lot of code and trying to figure out lets say which command run last and crashed your script and what error it said.
  2. Title Tracking Reverse Flash = "Title" command in batch files sets the title of the Prompt when running.
  3. goto :SetGreen =  "goto" command takes your to a labele section of your script
  4. :SetGreen = the ":" in "SetGreen" marks the beggining of a labeled section of the script.You cam have many Labeled Sections with different code under them and they can be called by "goto" or "call"command to run those specific code.Becomes really useful when making if statements lets say one condition to go to a certain section and run Specific code if the condition is true and vise versa.
  5. color a1 = "Color" command is a command to set color of background of your command prompt window,type color /? in cmd to see  its way of use. a number/letter after it represents a color : first number/letter for color of the words and second one fot the background.
  6. set /a color=%random% * (10-1) / 32767 + 1 = Set is command that makes a variable that can ve used later in the script.it is a complex command that you can research on ,has allot under it ans can do alot and allow you to make complex scripts if used righ
  7. >the Word "Color" in there is the name of the variable,it can be anything u want just remember it wen you want to use th value you gave it use "%(variable_name")%"  eg as used in the next line  "color %color%" 
  8.  %random% makes a random number, you can try "Echo %random%" in cmd to print you a random number.

  9. " * (10-1) / 32767 + 1 " is just an added equation to limit the random number to give us values between 0 and 10 to fit the color command use.you can change the number to 99 to alow it to make double digit combinations which by the color command use/syntax.
make more variation so that when u open all of them the look like doing different things eg:

Other Simple Variation:
Matrix_v2.bat
#################################################################################
@echo off

Title Tracking Reverse Flash

goto :SetGreen



:SetGreen
color a1 2>nul
goto :Start

:Start
set /a color=%random% * (10-1) / 32767 + 1
color %color% 2>nul
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%Process%random%%random%51%random%
Echo %random%%random%Code%random%%random%%random%%random%%random%
if %color% equ 9 (
timeout 1 >nul
goto :1
)
goto :start

:1
cls
goto :start
#################################################################################


Matrix_V3.Bat
#################################################################################
@echo off

Title starLabs

goto :SetGreen



:SetGreen
color a1 2>nul
goto :Start

:Start
set /a color=%random% * (10-1) / 32767 + 1
color %color% 2>nul
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%Process%random%%random%51%random%
Echo %random%%random%Code%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%Process%random%%random%51%random%
Echo %random%%random%Code%random%%random%%random%%random%%random%
if %color% equ 9 (
timeout 1 >nul
goto :1
)
goto :start

:1
set /a color=%random% * (99-10) / 32767 + 1
color %color% 2>nul
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%Process%random%%random%51%random%
Echo %random%%random%Code%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%Process%random%%random%51%random%
Echo %random%%random%Code%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%%random%%random%%random%
Echo %random%%random%%random%%random%Process%random%%random%51%random%
Echo %random%%random%Code%random%%random%%random%%random%%random%
if %color% equ 9 (
timeout 1 >nul
goto :Start
)
goto :1
#################################################################################

Thanks.
Keep Coding. Its the Practice and share, thats how you learn.

Comments

Popular posts from this blog

FIXING “FAILED TO LAUNCH THE PYTHON PROCESS IN VSCODE(ERROR SPAWN PYTHON ENOENT)” ERROR AND ERROR INSTALLING PYLINT