An official Batch Programming blog! To Solve the daily problems with windows and fixing them with little notepad scripts. Unlock the Hidden Secrets of Windows, Learn to crack Software via CMD & Make your own Programming tools. Understand to Manipulate your PC via CMD.

Simple Animation in Cmd console V.2.0 | Advanced Method

SIMPLE ANIMATION IN CMD CONSOLE (VER.2.0): In the last Article, of Animating a text or String inside the CMD Console [Intermediate level].

We used a simple algorithm of fulfilling our purpose. Which was, if we want to put a String on the console at a specified location, i.e. x,y {co-ordinates}.

We really don’t need to use any extra plugin for that. The Trick is as simple as life on the Earth.

What we have to do is to put the string after ‘y‘ empty lines and ‘x‘ blank spaces. The situation will become more clear and easy to understand by the help of an example.

Algorithm For Simple Animation – 1 ELement only
Animating Two Text Strings in CMD

How to make Animation in CMD? – Advanced Method

Let’s suppose if we want to Put a string “Karanveer” on cmd console at the location 5,7 then we only have to run a loop (which may be a ‘for loop‘) to leave 6 empty lines before printing the String {Because, string will be on the 7th line.

So, we have to leave {7-1=6 lines}.

And, we also have to run a loop to put required spaces before the string. So, we require 5 spaces before the string thus printing it on the console.

Two Moving Elements Moving independently in CMD

Hence, the string will be printed on the required location on the console. But in this Animation inside the cmd console. We are animating 2 objects or strings together.

So, we may need to use some plugin as if we put a single string by using the previous algorithm. Then it may affect the behavior of another string as their collision with cmd walls can be detected.

Also Read:  ASCII Code Reveler Ver.1.0 | By Kvc

But, the collision among themselves may be undetermined. So, using a batch Plugin will make this work easier for us.

Moving Strings and Colliding with Walls of CMD

So, using a batch plugin In this version of Batch Animation. I’ve created 2 different Files which uses 2 Different Batch plugins. Batbox.exe & fn.dll,.

They both are efficient enough in their own way. You can download both the batch files from the Link at Bottom of this article, and experience their difference by yourself.

Batbox.exe can take multiple commands in a single go,
while fn.dll is fast responsive in repetitive calls from the batch file.

Do not forget to tell me about this post via comments or E-mails as most of this blog users E-mail me about their views of my Work. 

HASH Code - For Verification - (SHA-256)

Keep learning, keep sharing….
Be happy, spread happiness…


Download Link

Next Post

Previous Post

Leave a Reply

© 2020 TheBATeam

Theme by Anders Norén