July 18th, 2012, 10:38 AM
Get pixel color using screen coordinates
I need to get the color of a pixel on the screen. I know the exact coordinates of the pixel on the screen but I can't seem to get GetPixel to work either in VB or the API. It seems that I am going to have to save a screenshot as an image and look at that, but that is really problematic because the IT people have us all on a virtual desktop and people don't have access to a C: drive, plus everyone has different drive letters; it's a real mess.
Can anyone think of a way around this?
Any help is greatly appreciated.
July 20th, 2012, 11:50 AM
I wonder if the fact that it is a virtual desktop is affecting the API. It has been a few years but API used to work for me for this (whatever hack Dan Appleman had in his bible). Besides just the virtual machine, if there is any additional security burdenware which prevents screen captures this would affect your app. (This is pure speculation on my part mind you ..)
“Today you are You, that is truer than true. There is no one alive who is Youer than You.” - Dr. Seuss
July 20th, 2012, 01:11 PM
Thanks for the reply medialint. I don't think there is any burdenware preventing a screen capture; I have Print Key and it works just fine.
Originally Posted by medialint
Is there a way to use the API to GetPixel without a screen capture?