Reading a covered/minmized window?
Posted on 2002-06-07
I am currently reading the pixels of a window that is generated by a 3rd party application. I am trying to access the same screen information when the window is covered or minimized.
I have several exe's which run on my desktop and display various stock/commodity market conditions. They communicate with their vendors by internet using heavy encryption.
My task is to build an application which could read the conditions and recommendations from various vendors' apps, and give notice when certain market conditions exist.
I generate mouseclicks to navigate to different screens, and I read the information which is shown via controls. However, other information is displayed as bitmaps on the screen. (BUY , SELL, HOLD, ETC). The way I have been reading them so far, is to check the pixels (GETPIXEL)in a few locations and by color determine which bitmap is being displayed.( and therefore what the recommendation is)
The limitation of this technique, is that the all of the screens need to be visible in order to check the pixels.
Ideally I would like to have the screens minimized (or at least covered) so that other work can be done, and only when the user needs to make a decision, does the app display itself.
I had tried to use PRINTCLIENT (though not exactly how nietod outlined which I am trying now) However, if the vendor chose simply not to implement PRINTCLIENT will this work? Also I read somewhere that PRINTCLIENT does not work if the window is generated by another process.
Thanks in advance for your help guys.