Joined: 06 Dec 2006 Posts: 1908 Location: England.
Posted: Thu Apr 24, 2008 2:56 am Post subject:
Sorry to say but to my knowledge I dont think it's possible.
Windows don't handle buffers of the contents of each window. This is why all windows process the WM_PAINT message.
Each window procedure knows how to process the message and render the image they want/need to. If the window is minimized, then there is no way Windows will be able to give you the pixel's color value. In simple terms; GetPixel can only get you what Windows can 'see'.
So I would look for .dll injection as a solution.
However there are people here that know far more than me so I would hang on for someone with more experience before giving up. _________________
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Thu Apr 24, 2008 5:02 pm Post subject:
If you are referring to a video game, you can do it with certain rendering systems such as DirectX and OpenGL. Look up how to take a screenshot. Instead of saving the image, store it in a buffer and scan the buffer for the pixel that you need. You will have to do calculations yourself to get the correct pixel you need and such but thats probably the closest you can get to doing this. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum