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.
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.
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.
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.
How to use Box Function 3.0?
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 version||General Syntax for Testing||Time for Execution||Speed Comparison|
|Box 1.0||Call Box 10 5 15 40||260 ms||1x|
|Box 2.0||Call Box 10 5 15 40||190 ms||1.4x|
|Box 3.0||Call Box 10 5 15 40||80 ms||3.25x|
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)
Keep learning, keep sharing….TheBATeam
Be happy, spread happiness…