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-08-12 11:03
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » In DOS, batch processing can also achieve the effect of a three-dimensional window View 2,325 Replies 2
Original Poster Posted 2010-06-29 20:03 ·  中国 辽宁 葫芦岛 联通
中级用户
★★
Credits 247
Posts 147
Joined 2009-04-09 20:52
17-year member
UID 142531
Gender Male
Status Offline
http://u.115.com/file/f542efb272
winx.vfd.gz

Batch processing can also achieve a three-dimensional effect of the window under DOS

winx.awk is used to outline the border of the window to present a three-dimensional effect

Involved software:
1. UCDOS with special display function and ucmouse
2. wbat
3. awk
4. choix
5. ctmouse

Usage steps
1. UCDOS calls the Chinese system and special display function
RD16
KNL
RDFNT
TX

2. Mouse call
CTMOUSE
UCMOUSE

3. Use of WBAT
WBAT TEXT 2,6 (BLUE ON WHITE) "DAFDSAFDASFDASF"
Realize to display the specified text content in the specified screen area

4. Use of AWK to draw a three-dimensional border on the specified area of the screen through the winx.awk script
ECHO.|AWK -f winx.awk -v x=2 y=6 h=1 l=15 ok=0
Realize to draw a raised border in the area starting from column 6 of row 2 on the screen with a height of 1 line and a width of 15 characters

5. Use of choix
choix /c:o /m /n /s
Wait for the user to input "o" via the keyboard or click the letter "o" on the screen via the mouse. The only place more powerful than choic is that it can wait for the user to click the letter with the mouse.

[ Last edited by DXSX on 2010-6-30 at 10:00 ]
Attachments
winx1.GIF
winx2.GIF
winx3.GIF
Floor 2 Posted 2010-07-26 14:17 ·  中国 广东 梅州 丰顺县 联通
初级用户
Credits 22
Posts 12
Joined 2010-07-24 10:16
16-year member
UID 171101
Gender Male
Status Offline
Floor 3 Posted 2010-07-26 23:05 ·  中国 浙江 杭州 电信
新手上路
Credits 4
Posts 2
Joined 2010-06-29 16:16
16-year member
UID 169666
Gender Male
Status Offline
Forum Jump: