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.

Create Dialogue Box in CMD | Box function 3.0 by Kvc

Box Function 3.0 has the main idea to print a dialogue box in CMD console by using any method. I made this because for a long time – I have seen programmers struggling for just creating a basic UI with a bulky chunk of commands. My most of the efforts in projects were – just wasting time & energy to create a Simple UI, so that user can easily interact with my creation.

As from the previous versions of the Box function, v.1.0 & 2.0 were much efficient and, effective in making the batch programs more advanced with adding GUI capabilities in CMD. But, the problems of Box function 1.0 were solved by creating Box Function 2.0. As we already know that version 2.0 uses fn.dll file for printing the box layout on the console.

Displaying BOX on Screen!
Displaying BOX on Screen!

DIALOGUE BOX IN CMD – Box Function 3.0

Calling the plugin file fn.dll repeatedly makes it an enemy of CPU, thus it was not that efficient. While batbox.exe is a plugin that has the property of performing multiple commands in just a single go, without using CPU resources much. Hence, we used this property of batbox.exe in Box Function 3.0.

CREATE DIALOGUE BOX IN CMD CONSOLE | BOX FUNCTION 3.0 BY KVC
A Preview

The above image will show you a demonstration of printing a simple Box on the console screen. These are the minimum number of arguments that you have to provide, in order to print a proper box on the console.

HELP IS ALWAYS GOOD – BOX 3.0

If you want to add or change the properties of the Box to be printed on the console. Then you need to provide some more parameters while calling the Box function from your batch file. So, let’s see the help menu as it is the main thing which can provide true information about using this function.

CREATE DIALOGUE BOX IN CMD CONSOLE | BOX FUNCTION 3.0 BY KVC
Help Menu

As you can see, extra unnecessary options are removed in version 3.0 (dialogue box option) because you can make any box dialogue box by simply providing the right color codes while calling this function. Make sure to test out all the options in your awesome projects.

Also Read:  Display Box Layout in CMD | Box Function 2.0 By Kvc

How to use Box Function 3.0?

BOX FUNCTION 3.0 BY KVC
Usage Example

The example for using this function in your batch files is shown in the above picture. You just have to write a line similar to the above line in your batch file and don’t forget to write ‘Call’ before the Box command. Otherwise, your program may show some unwanted crashes. You can print dialogue boxes on the console as shown in the image below.

Performance Analysis – Box FUnctions by Kvc

Plugin versionGeneral Syntax for TestingTime for ExecutionSpeed Comparison
Box 1.0Call Box 10 5 15 40 260 ms1x
Box 2.0 Call Box 10 5 15 40190 ms1.4x
Box 3.0 Call Box 10 5 15 4080 ms3.25x
CREATE DIALOGUE BOX IN CMD CONSOLE
Dialogue Box

All the rest of the options remain the same, in order to keep things simpler for the users of version 1.0 and 2.0 of the Box Function by Kvc. Also, this function is approx 2.36x faster than the previous version. Which is a huge success for #TheBATeam. What do you think? Please let us know your opinions in the comment section at the bottom.

From Editor’s Desk

At last, we only have to say this much that, if you really like our work, feel free to leave your precious reviews/feedback below in the comment field. Till then, as we always say…

HASH Code - For Verification - (SHA-256)
0b25ec27a3df6f76ef2deadf6176fe006c29b1bb63bc4ffaec70c65fd2023f00

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

TheBATeam

Download Link

Next Post

Previous Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2020 TheBATeam

Our Core Values   /   Terms & Conditions   /   Privacy Policy   /   Why Register?

Theme by Anders Norén