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 | Intermediate

As we all know that batch programming is basically Cui [character user interface] which means that you have to tell pc, what to do by typing on Keyboard And your pc gives you Response In form of characters (or sentences) On the monitor… I.e. All the exchange of data and information is in the form of Characters. Thus making a simple animation in cmd console in Cui Is the method how our these days Gui Tech.,comes From It?

Path of the dot displayed

Trick Used:

For making a simple animation in Cmd and this type of programming language is pretty-much difficult, but there is always a way… As cmd does not come with the utility of changing coordinates of input cursor (I.e. We can’t say like ‘Goto xy(5,6)’ as we use in c or CPP … so we need to take a different road for our goal.

In this batch script… what I’ve done is , i had simply leave y lines empty for Y – ordinate, and filled x spaces before our animated item for X abscissa. Which gives me utility like ‘Goto xy (x,y)’ in batch .

e.g. If I have to go to the co-ordinate (5,5), then simply I will leave 4 empty lines in the console and put 4 spaces before the character to be printed (as width of character is ‘1’). So, We’ll reach to the point 5,5 Indirectly. 

Trick for SIMPLE ANIMATION IN CMD

This method is only possible, when there is no other data on the console screen and you just need to move the cursor around, but when there is some data on the cmd screen, then this trick may result into data loss from the console screen.

Also Read:  Keylogger in Batch V. 1.0 by Kvc | Keylogger Script Using CMD

Hence, in those cases, it is better to use external plugin instead of doing this complicated trick for your program.

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

Thebateam

Download Link

Next Post

Previous Post

Leave a Reply

© 2019 TheBATeam

Theme by Anders Norén