
12-09-2006, 12:06 AM
|
 |
Ultimate Contributor
Retired Leader * Guru *
|
|
Join Date: Aug 2001
Posts: 5,343
|
|
The simplest way to do this is most likely to make it so rather than clicking on a specific pixel, the user has to push a specific key to select the pixel on which the mouse is hovering. The reason for this is that it's difficult to make your app process a click outside the main app window, so the program would lose focus and not be able to process the click.
Alternatively, you could "fake" it using a screenshot of the whole screen ( This module includes a function that lets to take a screenshot of an hDC and return a Picture object called hDCToPicture. You could show that picture on a fullscreen form that allows you to click on it, return the pixel color, hide the form and continue normally. If it's done right it should look fairly transparent (other than any on-screen animation).
|
|