中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-24 23:46
47,812 topics / 349,910 posts / today 1 new / 48,262 members
DOS批处理 & 脚本技术(批处理室) » [Share][Original] Batch Script to Write Big Character Special Effect Editor
Printable Version  1,986 / 4
Floor1 523066680 Posted 2008-12-28 13:53
银牌会员 Posts 1,133 Credits 2,362
First published at http://www.cn-dos.net/forum/viewthread.php?tid=45423&fpage=1
Author: 523066680
blog: http://hi.baidu.com/523066680

Just for entertainment, a whim. If it wastes everyone's time, please don't mind.
The special regret is that the code is quite long.


0 1 2 3 4 5 6 7 8 9 a b c d e f g h 0
□□□□□□□□□□□□□□□□□□ 1
□□□□□□□□□□□□□□□□□□ 2
□□□□□□□□□□□□□□□□□□ 3
□□□□□□□□□□□□□□□□□□ 4
□□□□□□□□□□□□□□□□□□ 5
□□□□□□□□□□□□□□□□□□ 6
□□□□□□□□□□□□□□□□□□ 7
□□□□□□□□□□□□□□□□□□ 8
□□□□□□□□□□□□□□□□□□ 9
□□□□□□□□□□□□□□□□□□ a
□□□□□□□□□□□□□□□□□□ b
□□□□□□□□□□□□□□□□□□ c
□□□□□□□□□□□□□□□□□□ d
□□□□□□□□□□□□□□□□□□ e
□□□□□□□□□□□□□□□□□□ f
□□□□□□□□□□□□□□□□□□ g
□□□□□□□□□□□□□□□□□□ h
□□□□□□□□□□□□□□□□□□ i

Usage:
Directly input coordinates, such as: 10, which will draw the point at the 0th number in the first line on the screen, actually the first point in the first line
If you regret entering this point, enter 10# again to remove this point
For slanted curves, you can only draw point by point.
If it is a vertical line or a horizontal line, you can input the coordinates of the two endpoints and "parameters"
For example, if you need to draw points from position 1 to f in the first line, from 11 to 1f, enter 111fx+
If from 1f to 11, enter 1f11x-; for a vertical line, for example, 10i0y+ or i010y- because it is a straight line, so one of the coordinates is fixed
(It's all requirements for the user... If you enter incorrectly, it will go into an infinite loop)
You can still cancel the entire line, for example: 111fx+#
(The one with # at the end means cancellation)

When a character is edited,
Enter exit to end, and the code entered during the process will be output to the x.x file. The code records the order. Paste it at the beginning of the already compiled special effect script line, and it's done. Actually, the special effect script and the code of the editor are mostly the same. The editor is just to facilitate seeing the result and editing, and the special effect script just automatically "inputs" the original input information once.
Enter quit to end, and no x.x file will be generated

Because there is a part to cancel the drawn point with the # symbol, the special effect will generally copy the process. For example, if there is 111dx+ 111dx+# in the input information, find this part, remove 111dx+ 111dx+#, and the process will skip this.

The following is a special effect template:

The code in the first line is an example, and there is a process of writing wrong and then erasing. You can try to remove 1b1cx+ 1b1cx+# and then see again.
To see your own editing effect: replace the entire line of the code you edited with the first line of the following code.


In fact, after modification, it can also be used to edit and obtain character patterns. The following is the combination of characters edited by yourself (not very well compiled...):
 
 ■
■■ ■
■■■■■■■■ ■■■■■■■■■
■■■■ ■■■
■■■ ■■■■■■■■
■■■■■■■■■■■■■■ ■■
■■■ ■■
■■■■■■■ ■■
■■■ ■■■■■■■■■■■
■■■■■ ■
■■■■■ ■
■■■ ■
■■■ ■
■■■■ ■

 
 
 
■■ ■
■■ ■
■■■■■■■■ ■■
■■■■ ■■■■
■■■■■ ■■
■■■■■ ■■
■■■■■■■■■■■ ■■
■■ ■
■■ ■
■■■ ■■■
■■■ ■■■
■■■ ■■■
■■■■ ■
■ ■
 ■■
 

[ Last edited by 523066680 on 2008-12-28 at 14:15 ]
Floor2 BC Posted 2008-12-28 13:56
中级用户 Posts 175 Credits 338
That's pretty good. Why not make one that supports the mouse?
http://www.bathome.cn/thread-2919-1-1.html
Floor3 holucan Posted 2008-12-28 14:07
初级用户 Posts 25 Credits 26
Heheh, a great batch script to write big character special effect editor. Got it and will study it. ;)
Floor4 523066680 Posted 2008-12-28 14:11
银牌会员 Posts 1,133 Credits 2,362
I'm going to read books, everyone. I really like the world of batch processing, but circumstances force me to leave this world.
(Exaggerated....)

So basically, I'll just take a look at everyone's suggestions for improving the code. I don't have time for major changes.
Floor5 BC Posted 2008-12-28 14:15
中级用户 Posts 175 Credits 338
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023