获取受阻窗口的图像内容 [英] Getting image contents of obstructed window

查看:233
本文介绍了获取受阻窗口的图像内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取一个被遮挡的窗口的图像内容,而不将其带到前面?此外,是否可以使用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://stackoverflow.com/questions/806376/simulations-mouse- move-click-keypress-in-an-application-that-is-not-active

http://msdn.microsoft.com/en-us/library/ms171548.aspx

这篇关于获取受阻窗口的图像内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆