创建应用程序的实时监控窗口

发布于 2024-10-07 12:08:45 字数 355 浏览 6 评论 0原文

我想创建一个可以显示应用程序(例如 Powerpoint 或 Adob​​e Reader)当前内容的窗口。

当我运行我的应用程序时,我首先选择需要实时监控的当前正在运行的应用程序。完成后,我需要获取所选应用程序的当前内容并显示它。由于我的应用程序将是实时的,因此它需要在所选应用程序的内容发生变化时捕获它们(以最小的延迟),然后显示它。

据我了解,这大致包括以下步骤: 1. 选择我要监控的应用程序 2. 当该应用程序(客户区)的内容发生更改时获取“通知” 3. 捕获新内容并显示它

步骤 [1] 和 [3] 非常简单,我在这里找到了几种执行它们的方法。然而,对于阶段[2]我仍然一无所知。有人可以阐明如何实现这一目标吗?

干杯。

I want to create a window that can display the current content of an application, say Powerpoint or Adobe Reader.

When I run my application, I would first select which of the currently running application I need to monitor in realtime. Once done, I need to get the current content of the selected application and display it. Since my application is going to be realtime, it will need to capture the contents of the selected application as and when they change (with minimal lag), and then display it.

As I understand, this broadly comprise of the following steps:
1. Selecting an application that I want to monitor
2. Get 'notification' when the content of that applicaion (client area) has changed
3. Capture the new content and display it

The steps [1] and [3] are quite easy and I find several methods here to perform them. However, for the stage [2] I am still clueless. Can anybody throw some light on how to acheive this?

Cheers.

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

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

发布评论

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

评论(2

江湖彼岸 2024-10-14 12:08:45

您可以看看 UltraVNC,它正是您想要做的事情(它有一个单一窗口模式以及全屏)。它至少有四种方法可以完成第 2 步。

You might take a look at UltraVNC, which does exactly what you are trying to do (it has a single window mode as well as full-screen). It has no less than four ways to accomplish your step #2.

Smile简单爱 2024-10-14 12:08:45

我能想到的一种明显的方法是定期拍摄应用程序窗口的快照,并将其与前一个窗口进行比较以了解更改。

The one obvious approach I can think of is to periodically take snapshots of the app's window and compare it to the previous one for changes.

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