中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-15 16:09
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » dos 下如何截取屏幕信息? 查看 883 回复 2
楼 主 dos 下如何截取屏幕信息? 发表于 2009-05-20 01:41 ·  中国 广东 佛山 电信
新手上路
积分 8
发帖 3
注册 2008-11-14 17:28
17年会员
UID 130975
性别 男
状态 离线
我是新手,现在想实现一个功能,从开机启动后从屏幕上截取其中的文本信息作为txt文件,不是截图!请问dos下有没有这样的软件啊,谢谢!

我的邮箱xxxr_888@163.com
2 发表于 2009-05-20 04:34 ·  中国 上海 杨浦区 电信
金牌会员
★★★★
积分 4,639
发帖 2,239
注册 2005-01-30 00:00
21年会员
UID 35785
性别 男
状态 离线
4DOS 有个读屏变量函数

4DOS Help Topic: @READSCR


@READSCR: Returns the text displayed on the screen at the
specified location. The upper left corner of the screen is location 0,0.

The row and col can be specified as an offset from the current cursor
location by preceding either value with a or . For example:

%@readscr

returns 10 characters from the screen, starting 2 rows above and 2 columns
to the right of the current cursor position.

You can also specify the row and column as offsets from the current cursor
position. Begin the value with a plus sign to read the screen the
specified number of rows below (or columns to the right of) the current
position, or with a minus sign to read the screen above (or to the left
of) the current position.


以前 4DOS 还没有 Freeware 的时候我就用这个笨办法来判断它自己是否试用到期来提醒你,然后再用原始的文件替换掉它自己的过期记录文件,然后可以一直试用下去。但这个方法好像只对 6.x 有效,后来的 4DOS 忘了从哪个版本起不是记录在文件里了,不知道是记录在哪里了,就无效了。
3 发表于 2009-05-20 21:20 ·  中国 广东 佛山 顺德区 电信
新手上路
积分 8
发帖 3
注册 2008-11-14 17:28
17年会员
UID 130975
性别 男
状态 离线
太感谢了!!我回去试试!
论坛跳转: