VB中的文本抓取(来自商业软件程序) [英] Text Scraping in VB (from commercial software program)

查看:80
本文介绍了VB中的文本抓取(来自商业软件程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要提升一个主要包含文本的窗口的内容,并将其连续地馈送到文件中.

我可以找到窗口的句柄,但似乎无法弄清楚如何获取窗口标题以外的信息.

如果我能看到一个示例,则可以使用Windows API.

在此先感谢您.

I need to lift the contents of a window which contains mostly text and feed it to a file on a continuous basis.

I can find the handle of the window but cannot seem to figure out how to get the information other than the windows title.

The use of windows API would be fine, if only I could see an example.

Thanks in advance.

推荐答案

您可以捕获窗口的屏幕截图,然后使用OCR软件提取文本.听起来很乏味,但是我知道有人这样做(尽管是在Perl中,不是在VB中),以便为策略游戏创建外部AI"!
You could capture a screenshot of the window, then use OCR software to extract the text. It sounds tedious, but I know someone who has done just this (albeit in Perl, not VB) in order to create an "external AI" for a strategy game!


这篇关于VB中的文本抓取(来自商业软件程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆