Martynas
Martynas

Reputation: 319

Getting image contents of obstructed window

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.

Upvotes: 0

Views: 1393

Answers (1)

karlphillip
karlphillip

Reputation: 93410

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

Upvotes: 1

Related Questions