提取窗口内容

发布于 2024-08-25 14:10:16 字数 128 浏览 3 评论 0原文

如果窗口内容基于文本,或者至少基于与该窗口关联的文件路径,我需要提取窗口内容。迄今为止,我已经考虑过: 1.win32API 2. 第三方库 3.包装类

但是,我对解决方案并不满意。那么有什么想法可以以干净的方式完成此操作吗?

I need to extract window content if this is based on text, or at least the file path associated to that window. To-date, I have considered:
1. win32api
2. 3rd party libraries
3. wrapper classes

However, I am not satisfied with the solutions. So any ideas how this can be done in a clean way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

来世叙缘 2024-09-01 14:10:16

您可能想看看 autoit http://www.autoitscript.com/autoit3/index .shtml
它是一种免费的脚本语言,专为(除其他外)屏幕抓取而设计。即使您不使用该语言,它也包含一个屏幕抓取实用程序,可以识别屏幕对象的类和控件 ID。这可能很有用,因此可以识别窗口的各个部分,您可以通过另一个 Windows 应用程序从中提取数据(getwindowtext 等)。

-大学教师

You might want to have a look at autoit http://www.autoitscript.com/autoit3/index.shtml
it is a free scripting language designed for (among other things) screen scraping. even if you don't use the language, it includes a screen scraping utility that identifies classes and control id's of screen objects. that can be useful so in order to identify pieces of the window from which you can extract data (getwindowtext, etc) via another windows app.

-don

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文