C系列强大的第三方命令行工具集合,都是我自己用VC++ 6.0写的,很强大的工具集合,之前已经在VeryBat和BatHome论坛发布过了,不过好像这边都没有转载过来。。。
这个合集里面有7个第三方命令行工具,是很好很强大的,有很多功能都是首创的。。。
合集里面每个工具有一个文件夹,里面放有exe及一个讲解批处理,部分工具附带有一两个范例。。。
Cmos 版本 3.0
这个我自认开发的第三方工具里最强大的,能让批处理支持鼠标,光标能跟随鼠标移动。当鼠标按下指定按键之后停止,从errorlevel返回按下按键时鼠标的命令行窗口坐标。
Cmos应该是继Wbat之后的第二个支持鼠标的第三方工具了。。。
1、支持鼠标左中右键的捕获
2、支持鼠标输入时限制鼠标只能在窗口内移动
3、支持过N秒后自动停止,返回坐标
4、支持所有代码页,不改变当前代码页
我自己就用Cmos写了很多游戏等互动型的批处理,效果很好
CIdo 版本 3.0
这个的功能也是很强大的,适用于改造批处理窗口的人们,让窗口更为华丽、强大
1、更改、获取窗口相对于屏幕的位置(随便移动窗口)
2、设置窗口的状态(隐藏、最小化、最大化、还原等)
3、调用蜂鸣器发出响声(警告、提示、错误等)
4、弹出对话框(6种不同样式,有确定、取消、是否、重试等8种按钮,返回不同值)
5、设置缓冲区大小(用mode con改变了窗口大小后可以用这个改回)
6、设置窗口显示区大小及位置(窗口中所显示的缓冲区大小和位置)
7、滚动窗口(缓冲区)内容
8、获取窗口宽高
9、获取屏幕分辨率
10、将窗口举重于屏幕
哇噻,写死我了。。。
CKey 版本 2.0
专为不满足于choice的人们打造的,不仅支持字母,还可以支持回车、Shift、Ctrl、删除键、F1~F24、小键盘、方向键等键盘上绝大多数键的输入
1、支持键盘几乎全部键的判定
2、到达N秒后停止
功能不多,但是对于choice的拓展已经足够了(某人的测试好像说甚至支持游戏杆)
Cimt 版本 1.0
可以模拟键盘、鼠标的操作,我用这个做过一个批处理版的屏幕键盘。。。
1、模拟键盘上绝大多数键的操作(暂不支持组合键)
2、模拟鼠标左中右键操作
3、模拟鼠标移动
这个的核心代码跟CKey用的是一样的,如果CKey真的支持游戏杆的话,那么这个也。。。
Colr 版本 1.0
这个是color和echox的拓展,color只能对整个批处理变色,echox只能对当前输出的内容变色,Colr可以对窗口中的任意内容(给出坐标及长度)变色,而且可以给文字加上下划线的效果(无意中的发现)。。。
1、给缓冲区中任意位置的内容变色
2、给缓冲区中任意位置的内容加上下划线
当然,用cls就可以去除掉颜色及下划线了。另外,这个工具的启动好像有点缓慢,估计是用到的头文件太多了。。。
CurS 版本 1.0
这些命令行工具,都有点历史。一开始都是用C#写的,后来发现如果使用机器没有装Framework .Net 2.0就无法运行。重新在VC++ 6.0里面开发是很痛苦的事情,相对于C#来说VC++ 6.0对命令行的支持实在太少了,做个简单的命令都要用一堆的头文件和API,痛苦的事。。。
嗯,跑题了。。。这个工具可以改变当前光标的位置,从而控制文本的输出。对于好的界面是不可多得的工具,当然,还可以对光标做很多事情。这个光标不是鼠标所控制的光标,是命令行里面pause的时候...后面那一闪一闪的白条。。。
1、改变光标的位置
2、显示、隐藏光标
3、更改光标的大小
Cext 版本 1.0
这个是为了方便处理缓冲区的文本做的工具,不过功能实在废物,实用价值不高。。。
1、绘制一个方框
2、移动缓冲区的内容
3、删除缓冲区的一行
实用价值的确低。本来在弄个功能可以把缓冲区的内容读到变量里面的,这样就可以减少用for的次数,不过弄了好久都没弄好,也就没更新了。。。
这系列的东西都是我花很久时间才做好的,大家都顶下哈,顺便发表下意见
PS:很快就有一个新的工具出炉啦,就是C×××,哈哈,具体名称当然不能提前透露啦,不过功能可以说,就是一命令行的截图软件,可以给屏幕、命令行和当前的焦点窗口截图并自动保存到文件中,以bmp的32位保存,质量还不错,就是有点大了。很实用的一个工具,配合CKey可以做热键截图了吧。。。
点击这里下载
Last edited by defanive on 2009-1-19 at 19:49 ]
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 ]