Read Mode
Default

Cmdwiz - CMD Helper Tool | By Misol101

Cmdwiz - CMD Helper Tool | By Misol101

CmdWiz is a great batch plugin By Misol101. As discussed in earlier articles, "There are many good batch programmers out there." and Misol101 is one of them. After looking at the work of Misol101, It is definitely sure that Misol101 stands at 'Ultimate Level' of our Batch Programming Ranking. #TheBATeam respects and salutes his efforts for making life of others easy. We also try to walk on the paths of legends as Misol101, but still we need some time and help. Anyways, Lets start with the discussion about Cmdwiz - CMD Helper Tool | By Misol101. 

Cmdwiz - What is it?

CmdWiz can be classified as the ultimate tool for your batch programs, because it contains almost all of the functions you need to make an awesome GUI Based Batch program. According to the author, "It is a helper tool to do all sorts of useful things in batch scripts (and outside).", which is quite a good Definition. 
Related Post: Batbox - An Awesome Batch Plugin | By Darkbatcher
The Final Output file is 74.3 KBs, and it is made and compiled in C Programming language. It currently supports total 39 functions in the single plugin. Which is quite impressive, within such small file size. The following Table will help you in understand all supported functions easily. For the detailed and original Documentation by the author, Please Visit this Link.

Sr.#
Name
Parameters
Description
I. To affect the Looks, size, position of CMD

1
GetConsoleDim
[w | h | sw | sh | Sx | Sy ]

WIDTH 80 HEIGHT 50 SCREEN_WIDTH 80 SCREEN_HEIGHT 50 SCROLL_X 0 SCROLL_Y 0

Prints column/row dimensions of current console.
2
SetBufferSize
[ width | keep height | keep ]
Set the scroll buffer column/row size.
3
GetDisplayDim
[ w | h ]

The requested dimension is returned in ERRORLEVEL.
Get the width or height of the Windows desktop.
4
GetWindowBounds
[ x | y | w | h ]

The requested value is returned in ERRORLEVEL.
Get the position of the console window in screen coordinates or its width/height in pixels.
5
SetWindowPos
[ x | keep y | keep ]
Set the position of the console window in screen coordinates.
6
SetWindowTransparency
[ 0-100 ]
Sets the transparency level of the console window. The whole window is affected.
II. Reading Input methods (keyboard, mouse)
7
Getch
[ noWait ]

Result in ERRORLEVEL, 0 if no key was pressed.
Return scan code of first key in queue, if any.
8
Getkeystate
[ All | ctrl | alt | shift | VKEY[h] ] [VK2] ...
Get the state (pressed or not) of specified keys.
9
Getch_And_Mouse

[ maxWait_ms ]
This operation reports both mouse events & key event that occurred.
10
Getch_or_Mouse
[ maxWait_ms ]
Get key or mouse events. Very similar to "getch_and_mouse" but does not report both mouse and key events at the same time.
11
GetMouse
[ maxWait_ms ]
Get mouse events.
12
FlushKeys
-
Flush all remaining keys in the pressed key buffer
13
GetQuickEdit
-
Determines whether the console is in quickedit mode.
14
SetQuickEdit
[ 0 | 1 ]
Enables or diables quickedit mode. See getquickedit for more info.
III. Setting and saving the current Console Font
15
SetFont
[ 0-9 | filename ]
Sets the current console font based on either a bitmap font index, or a saved font specification file.
16
SaveFont
[ filename ]
Writes specifications of the current font to a file
IV. Get character and colors in the buffer/system
17
GetConsoleColor
[ fg | bg ]

The color index is returned in ERRORLEVEL.
Returns either the foreground or background color index currently used by the console.
18
GetCharat
[ x | k y | k ]

The result is returned in ERRORLEVEL.
Returns the character (extended ASCII value) at the given buffer position.
19
GetColorAt
[ fg | bg x | k y | k ]

The result is returned in ERRORLEVEL.
Returns either the foreground or background color index at the given buffer position.
V. Setting the cursor position/look and writing text
20
GetCursorPos
[ x | y ]
The value is returned in ERRORLEVEL.
Returns either the x (column) or y (row) position of the cursor
21
SetCursorPos
[ x | keep y | keep ]

Sets the cursor position in the buffer.
22
ShowCursor
[ 0 | 1 ] [ 1-100 ]

[On / Off] [%age]
Show or hide the cursor, optionally changing its appearance.
23
Print
["string"]
Print the given string at the current cursor position.
VI. Working with strings
24
StringFind
[orgstring findstring] [startindex] [noCase]

ERRORLEVEL is set to the 0-based index position in orgstring where findstring was found. ELSE -1.
Searches for a string inside another string. This operation attempts to find findstring inside orgstring.
25
StringLen
[string]
Returns the length of a given string
VII. Working with timing/delays
26
Delay
[ms]
Pauses for the specified amount of time
27
GetTime
-

The result is returned in ERRORLEVEL.
Retrieves the number of milliseconds that have elapsed since the system was started
28
Await
[oldtime] [waittime]
Waits up to the given amount of milliseconds
VIII. Moving and clicking with the mouse pointer
29
GetMouseCursorPos
[ x | y ]
Get the x or y position of the mouse cursor in pixels from the top left of the screen
30
SetMouseCursorPos
[ x | keep y | keep ] [ l | r | d | u ]
Sets the mouse cursor position, optionally followed by a click
IX. Moving, saving or examining blocks of characters
31
CopyBlock
[x y width height newX newY]

Overlapping blocks are Valid.
Copy a block of characters in the screen buffer from one place to another
32
MoveBlock
[x y width height newX newY]
Move a block of characters in the screen buffer from one place to another
33
SaveBlock
[filename x y width height] [encode|forcecode|nocode|txt] [transparent char] [transparent bgcolor] [transparent fgcolor]
Saves a block of characters from the screen buffer to file, including color information
34
InspectBlock
[x y width height inclusive|exclusive char1] [char2] [char3] ...
Check for the presence or exclusiveness of one or more characters within a screen buffer block
X. Miscellaneous operations
35
InsertBmp
[file.bmp x y] [ zoom | [w h] ]
Insert a bitmap image into the console window
36
PlaySound
[filename.wav]
Plays a sound file
37
GetExeType
[file]
Determine the executable type (if any) of a file
38
Cache
[filelist]
Put files in Windows file cache
39
GetTitle
-
Prints the title of the console window to stdout

So, Now you know the potential of this small, but effective batch plugin. You can control almost everything with it by your batch program. In most cases, it replaces many extra plugins and thus, reduces your Project size. When, I came to know about it - I was like, wow! What a great creation. I would again like to thank Misol101 for creating and sharing such awesome plugin with us all. 😊

You can download the plugin and its example files from the link at the bottom of this article. This is just the Basic documentation of the plugin, just to make sure that you know all of the available functions of CmdWiz. If you are in doubt with usage or wrong description of any function / Bug. Please visit the official link, given above the table. You can also ask your queries in the comment field below. We are always ready to help. Thanks for your time. 😎

Keep Sharing, Keep Learning...
Be Happy, Spread Happiness...

Download Link:

1 comment:

  1. Wow, So cool, now I can finally make a great GUI program.

    ReplyDelete

Powered by Blogger.