CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    2

    Getpixel + printwindow help

    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!

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Getpixel + printwindow help

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured