问题
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