中国DOS联盟论坛

中国DOS联盟

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

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

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
作者:
标题: dos 下如何截取屏幕信息? 上一主题 | 下一主题
amdk8
新手上路





积分 8
发帖 3
注册 2008-11-14
状态 离线
『楼 主』:  dos 下如何截取屏幕信息?

我是新手,现在想实现一个功能,从开机启动后从屏幕上截取其中的文本信息作为txt文件,不是截图!请问dos下有没有这样的软件啊,谢谢!

我的邮箱xxxr_888@163.com

2009-5-20 01:41
查看资料  发短消息 网志   编辑帖子  回复  引用回复
DOSforever
金牌会员





积分 4633
发帖 2236
注册 2005-1-30
状态 离线
『第 2 楼』:  

4DOS 有个读屏变量函数

  Quote:

4DOS Help Topic:  @READSCR


@READSCR[row,col,length]:  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[-2,+2,10]

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 忘了从哪个版本起不是记录在文件里了,不知道是记录在哪里了,就无效了。



DOS倒下了,但永远不死
DOS NEVER DIES !

投票调查:
http://www.cn-dos.net/forum/viewthread.php?tid=46187

本人尚未解决的疑难问题:
http://www.cn-dos.net/forum/viewthread.php?tid=15135
http://www.cn-dos.net/forum/viewthread.php?tid=47663
http://www.cn-dos.net/forum/viewthread.php?tid=48747
2009-5-20 04:34
查看资料  发短消息 网志   编辑帖子  回复  引用回复
amdk8
新手上路





积分 8
发帖 3
注册 2008-11-14
状态 离线
『第 3 楼』:  

太感谢了!!我回去试试!

2009-5-20 21:20
查看资料  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: