Morae 屏幕文本搜索未捕获 WPF 应用程序中的屏幕文本

发布于 2024-07-11 16:37:13 字数 573 浏览 7 评论 0原文

当我尝试使用 Morae Manager 3.0 对我们的原型记录(以 WPF、.NET 版本 3.5 SP1 编码)运行屏幕文本搜索时,出现的唯一内容是窗口标题。 我们使用的是Windows XP。

即使当我搜索可编辑的内容(例如在文本框中输入的文本)时,它也不会出现。

原型之外的内容(例如桌面图标)的屏幕文本仍然完美显示。

我曾两次联系 TechSmith 支持人员,两次得到的回复都是我们的技术存在问题,因为屏幕文本搜索确实适用于其他事情,而且支持人员不是开发人员,因此不知道是什么可能会导致这种情况。

有谁知道:

  1. 到底是什么原因造成的——例如,WPF 的渲染引擎是否绕过 Morae 查找文本的某种 Windows 层(请原谅我的术语中的任何错误),
  2. 如果我可以在原型中调整任何内容来修复这是
  3. 我如何联系 TechSmith 知道 1. 和 2. 答案的人。

PS Morae 是一个很棒的产品,我们通常得到 TechSmith 的大力支持。 我们只是在这一点小事情上遇到了问题,而且很难责怪 Morae 不与 WPF 这样的新东西兼容。

When I try to use Morae Manager 3.0 to run a Screen Text search on a recording of our prototype (coded in WPF, .NET version 3.5 SP1), the only things that come up are the window titles. We are using Windows XP.

Even when I search for something that is editable, like text typed into a text box, it does not come up.

Screen text for things outside the prototype (e.g. desktop icons) still comes up perfectly.

I contacted TechSmith support on two separate occassions and both times the reply I got was it must be an issue with our technology, since the screen text search does work for other things, and that the support people are not developers and thus do not know what might be causing this.

Does anyone know:

  1. what precisely might be causing this -- e.g. does WPF's rendering engine bypass some sort of Windows layer where Morae looks for text (please forgive me for any errors in terminology)
  2. if there is anything I can tweak in the prototype to fix it
  3. how I can get through to someone at TechSmith who knows the answers to 1. and 2.

P.S. Morae is a wonderful product and we've usually had great support from TechSmith. We are only having problems with this one little thing, and one can hardly blame Morae for not being compatible with something as new as WPF.

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

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

发布评论

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

评论(1

遥远的绿洲 2024-07-18 16:37:13

我不知道 Morae 是什么或者它是如何工作的,但是 WPF 和 WinForms 之间的一个很大的区别如下,复制自 此处

当您创建 WPF 窗口时,WPF
创建一个顶级 HWND,并使用
HwndSource 放置窗口及其
HWND 内的 WPF 内容。 其余的部分
应用程序中的 WPF 内容
共享单数 HWND。

如果 Morae 依赖 HWND 来查找屏幕上的文本,这可以解释为什么它找不到文本框。 相反,我相信在 WinForms 中每个控件(按钮、文本框)都有自己的 HWND。

I have no idea what Morae is or how it works, but one big difference between WPF and for example WinForms is the following, copied from here:

When you create a WPF Window, WPF
creates a top-level HWND, and uses an
HwndSource to put the Window and its
WPF content inside the HWND. The rest
of your WPF content in the application
shares that singular HWND.

If Morae depends on HWNDs to find texts on the screen, this could explain why it can not find the text box. In contrast, i believe in WinForms every control (button, textbox) has its own HWND.

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