提取窗口内容
如果窗口内容基于文本,或者至少基于与该窗口关联的文件路径,我需要提取窗口内容。迄今为止,我已经考虑过: 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想看看 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