Click to See Complete Forum and Search --> : Getpixel + printwindow help


soul444
July 21st, 2009, 06:50 AM
Ok so what i have been trying to get to work is getting a pixel from a program that is not focussed (so minimized). I tried Getpixel but only got it to work when the window is active(focus). It seems it only works for active window.

Then i thought making a temperaly screenshot of the program and get the pixel.
I came across PrintWindow. Right now im searching to make a temperaly screenshot of a minimized program and read the pixels of it. So far i had no succes. There might be an other solution, any tips are welcome :)

It would be greatly appreciated if anyone could help me out.

Cheers!

HanneSThEGreaT
July 21st, 2009, 07:10 AM
Not going to happen, in both cases :)

What I mean is, in order for GetPixel to work, it will need an active window to actually get the particular pixel from. PrintScreen, AFAIK, cannot make a copy of a minimized program.

What I'd suggest is to use the bring the minimized window to the top, then get the pixel, then minimize it again.

I hope my comments were useful