获取受阻窗口的图像内容 [英] Getting image contents of obstructed window
问题描述
是否可以获取一个被遮挡的窗口的图像内容,而不将其带到前面?此外,是否可以使用Windows API将鼠标点击发送到此类窗口的特定位置?在Windows XP和Windows 7上的实现会不同吗?
我需要什么功能,我在哪里可以阅读更多。感谢。
Is it possible to get image contents of an obstructed window without bringing it to the front? Also, is it possible to send mouse clicks to a specific locations of such window using Windows API? Would the realization be different on Windows XP and Windows 7? What functions I would need and where can I read more about that. Thanks.
推荐答案
Windows GDI可以帮助您完成屏幕截图任务。有一些VB代码这里让你开始。
Windows GDI can assist you on the screenshot task. There's some VB code here to get you started.
有很多关于如何模拟鼠标点击的材料:
There's a lot of material on how to simulate mouse clicks:
http://tomicki.net/mouse.clicker.php
http://msdn.microsoft.com/en-us/library/ms171548.aspx
这篇关于获取受阻窗口的图像内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!