China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 12:51
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Recommendation]Powerful third-party command-line tools of the C series! View 2,429 Replies 6
Original Poster Posted 2009-01-19 19:40 ·  中国 广东 广州 电信
初级用户
★★
Credits 111
Posts 62
Joined 2007-12-31 20:10
18-year member
UID 107336
Gender Male
Status Offline
C series of powerful third-party command-line tool collections, all written by myself using VC++ 6.0, a very powerful tool collection. It has been released on the VeryBat and BatHome forums before, but it seems that it hasn't been reprinted here...

There are 7 third-party command-line tools in this collection, which are very good and powerful, and many functions are original...

Each tool in the collection has a folder, which contains exe and an explanatory batch file. Some tools are accompanied by one or two examples...


Cmos Version 3.0

This is what I consider the most powerful third-party tool I developed. It can make batch processing support the mouse, and the cursor can follow the mouse movement. When the mouse presses the specified key, it stops, and returns the coordinate of the command-line window where the mouse is pressed from errorlevel.

Cmos should be the second third-party tool after Wbat to support the mouse...

1. Support capture of left, middle and right mouse buttons
2. Support restricting the mouse to move only within the window when inputting with the mouse
3. Support automatic stop after N seconds and return coordinates
4. Support all code pages without changing the current code page

I have written many interactive batch processes such as games using Cmos, and the effect is very good


CIdo Version 3.0

This function is also very powerful, suitable for people who transform batch processing windows, making the window more gorgeous and powerful

1. Change and get the position of the window relative to the screen (move the window at will)
2. Set the state of the window (hide, minimize, maximize, restore, etc.)
3. Call the buzzer to make a sound (warning, prompt, error, etc.)
4. Pop up a dialog box (6 different styles, with 8 kinds of buttons such as OK, Cancel, Yes/No, Retry, etc., return different values)
5. Set the buffer size (can be changed back with mode con after changing the window size)
6. Set the size and position of the window display area (the size and position of the buffer displayed in the window)
7. Scroll the content of the window (buffer)
8. Get the width and height of the window
9. Get the screen resolution
10. Lift the window to the screen

Wow, it's killing me...


CKey Version 2.0

Designed for those who are not satisfied with choice. It not only supports letters, but also can support input of most keys on the keyboard such as Enter, Shift, Ctrl, Delete key, F1~F24, numeric keypad, arrow keys, etc.

1. Support judgment of almost all keys on the keyboard
2. Stop after reaching N seconds

The functions are not many, but it is enough for the expansion of choice (someone's test seems to say that it even supports the game controller)


Cimt Version 1.0

Can simulate keyboard and mouse operations. I used this to make a screen keyboard in batch processing...

1. Simulate operations of most keys on the keyboard (combination keys are not supported for the time being)
2. Simulate left, middle and right mouse button operations
3. Simulate mouse movement

The core code of this is the same as that used by CKey. If CKey really supports the game controller, then this also...


Colr Version 1.0

This is an extension of color and echox. Color can only change the color of the entire batch processing, and echox can only change the color of the currently output content. Colr can change the color of any content in the window (giving coordinates and length), and can also add an underline effect to the text (an accidental discovery)...

1. Change the color of content at any position in the buffer
2. Add an underline to the content at any position in the buffer

Of course, the color and underline can be removed with cls. In addition, the startup of this tool seems a bit slow, probably because too many header files are used...


CurS Version 1.0

These command-line tools are all a bit historical. At first, they were all written in C#, and later it was found that if the machine does not have Framework.Net 2.0 installed, it cannot run. It is very painful to re-develop in VC++ 6.0. Compared with C#, VC++ 6.0 has too little support for the command line. It takes a bunch of header files and APIs to do a simple command. It's painful...

Well, off the topic... This tool can change the current cursor position, thereby controlling the output of text. It is an indispensable tool for a good interface. Of course, many things can be done with the cursor. This cursor is not the cursor controlled by the mouse, but the flashing white bar when pause in the command line...

1. Change the position of the cursor
2. Show and hide the cursor
3. Change the size of the cursor


Cext Version 1.0

This is a tool made for the convenience of processing text in the buffer, but the function is really useless, and the practical value is not high...

1. Draw a box
2. Move the content of the buffer
3. Delete a line in the buffer

The practical value is indeed low. Originally, I was working on a function to read the content of the buffer into a variable, so as to reduce the number of times of using for, but I haven't done it well for a long time, so it hasn't been updated...


All these things in this series took me a long time to make. Everyone, give me a thumbs up, and by the way, leave your opinions.

PS: A new tool will be released soon, which is C×××. Haha, the specific name can't be revealed in advance, but the function can be said. It is a command-line screenshot software. It can take screenshots of the screen, command line and current focused window and save them automatically to files, saved in 32-bit bmp, the quality is not bad, but it is a bit large. It is a very practical tool. With CKey, hotkey screenshots can be done...


Click here to download

[ Last edited by defanive on 2009-1-19 at 19:49 ]
Floor 2 Posted 2009-01-20 11:47 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
19-year member
UID 59720
Status Offline
I have seen your stuff. The only thing is that it seems to consume too much CPU when running. If used in batch processing, it can only be used as a menu or something similar to avoid inputting characters, and you can enter with the cursor. But the coordinate code will be a lot and not easy to adjust. I find that sometimes there are also errors, which is the most fatal place. It is still okay to use in games, and it doesn't matter if there are errors. Also, when using the middle wheel, the cursor and the mouse will be separated.
Floor 3 Posted 2009-01-20 16:52 ·  中国 广东 广州 电信
初级用户
★★
Credits 111
Posts 62
Joined 2007-12-31 20:10
18-year member
UID 107336
Gender Male
Status Offline
Excessive CPU usage is a fatal flaw of this series. Actually, it's a last resort. CMD originally has no support for the mouse and other things. It can only keep refreshing to get the mouse's screen coordinates and then process them. Continuous looping can make the CPU soar above 80% in no time.

Actually, using these to create effects is quite good. The Go game I made before
http://bbs.bathome.cn/thread-2954-1-1.html
The effect is really good
Floor 4 Posted 2009-01-22 16:08 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Hehe, also came to cn-dos.

What the 2nd floor said about the batch CPU issue~ Hey, it's something I often encounter. I'm helpless too~
Floor 5 Posted 2009-01-23 13:51 ·  中国 广东 深圳 电信
初级用户
★★
Credits 185
Posts 88
Joined 2008-05-12 18:46
18-year member
UID 118511
Gender Male
Status Offline
Great stuff, bookmarked it first, really great!
Floor 6 Posted 2010-08-02 07:03 ·  中国 河北 唐山 中移铁通
新手上路
Credits 16
Posts 10
Joined 2005-10-26 13:08
20-year member
UID 44089
Gender Male
Status Offline
I'madly admire it! ^_^
PS: It seems to have stopped development. I wonder if the original poster will continue to develop it?
Floor 7 Posted 2010-11-21 23:28 ·  中国 福建 福州 福清市 电信
初级用户
Credits 134
Posts 17
Joined 2004-10-25 00:00
21-year member
UID 32901
Gender Male
Status Offline
Thanks for sharing
Forum Jump: