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 04:52
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] How to make a scrolling subtitle of text in a document View 3,271 Replies 10
Original Poster Posted 2007-06-01 08:55 ·  中国 海南 海口 移动
初级用户
Credits 26
Posts 12
Joined 2007-05-25 17:03
19-year member
UID 89286
Gender Male
Status Offline
How to make a scrolling subtitle of text in a document with batch processing. Because sometimes while watching a Beyond concert, I also want to read some articles, and having the words in a document scroll in front of me allows me to watch the concert and study at the same time. It's best to have the scrolling subtitle always stay in front.
Floor 2 Posted 2007-06-01 14:17 ·  中国 海南 海口 移动
初级用户
Credits 26
Posts 12
Joined 2007-05-25 17:03
19-year member
UID 89286
Gender Male
Status Offline
Why is there no one doing this? ~~~~~~~~~~~~~~~~~~
Floor 3 Posted 2007-06-02 09:46 ·  中国 海南 海口 移动
初级用户
Credits 26
Posts 12
Joined 2007-05-25 17:03
19-year member
UID 89286
Gender Male
Status Offline
Oh, why is there no one answering?~~~~~~~~~~~
Floor 4 Posted 2007-06-02 16:38 ·  中国 河北 保定 移动
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
This is not something that batch processing can do.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 5 Posted 2007-06-02 18:16 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
First, compile a Windows program, and then use batch processing to start it.
简单就是美
Floor 6 Posted 2007-06-02 18:33 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Enter at the command line
gawk -f readtxt.awk <filename to read>


The content of readtxt.awk is as follows:

BEGIN{
FS=OFS=""
}
# This is the main script
{
for(i=1;i<=NF;i++){
printf("%s",$i);
system("echo ok>nul")
}
printf "\n"
}
Floor 7 Posted 2007-06-02 18:47 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Just search for the download of gawk on the forum or online. My internet speed here is too slow to upload.
Floor 8 Posted 2007-06-03 11:47 ·  中国 海南 海口 移动
初级用户
Credits 26
Posts 12
Joined 2007-05-25 17:03
19-year member
UID 89286
Gender Male
Status Offline
What is gawk????????????????????
Floor 9 Posted 2007-06-03 12:22 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by zhanbushi at 2007-6-3 11:47:
What is gawk????????????????????


Gawk is a professional tool for processing text.

Download here:

Download Gawk.rar
Floor 10 Posted 2009-10-24 12:36 ·  中国 广西 南宁 电信
新手上路
Credits 9
Posts 8
Joined 2009-10-20 01:10
16-year member
UID 153361
Gender Male
Status Offline
Why can't I download it?
Floor 11 Posted 2009-10-24 20:55 ·  中国 云南 大理白族自治州 电信
初级用户
Credits 26
Posts 16
Joined 2008-08-03 20:55
17-year member
UID 122739
Gender Male
Status Offline
Not bad, everything has a way
Forum Jump: