Getting image contents of obstructed window

て烟熏妆下的殇ゞ 提交于 2020-03-28 02:13:12

问题


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.


回答1:


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

Simulate Mouse move/click/keyPress in an application that is not active

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



来源:https://stackoverflow.com/questions/3462334/getting-image-contents-of-obstructed-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!