i was wondering if there is a way to read the colors of pixels outside of the active form, assuming the form is not covering the wanted area of the screen?
Printable View
i was wondering if there is a way to read the colors of pixels outside of the active form, assuming the form is not covering the wanted area of the screen?
Welcome to the forums. :wave:
What do you mean by "outside of the active form"?
You can do that using various API calls. I'll leave it to someone more familiar with these to give an example. Perhaps a mod could move this to the API forum?
Hey,
Is this what you are looking for?
declares:
Code:Private Declare Function GetPixel Lib "gdi32" (ByVal Hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Code:MsgBox GetPixel(GetDC(0), 1, 1)'0 = handle of desktop
yeah its workin now thx
:) :)