创建应用程序的实时监控窗口
我想创建一个可以显示应用程序(例如 Powerpoint 或 Adobe 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以看看 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.
我能想到的一种明显的方法是定期拍摄应用程序窗口的快照,并将其与前一个窗口进行比较以了解更改。
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.