Code from an old (working) program
Code: Select all
GetCursorPos_(@igPt)
igRGB = GetPixel_(ghDC, igPt\x, igPt\y)

Code: Select all
GetCursorPos_(@igPt)
igRGB = GetPixel_(ghDC, igPt\x, igPt\y)
Code: Select all
ghDC = GetDC_(GetDesktopWindow_())
GetCursorPos_(@igPt.POINT)
igRGB = GetPixel_(ghDC, igPt\x, igPt\y)
Debug Hex(igRGB)
ReleaseDC_(GetDesktopWindow_(), ghDC)
Code: Select all
ghDC = GetDC_(GetDesktopWindow_())
GetCursorPos_(@igPt.POINT)
igRGB = GetPixel_(ghDC, igPt\x, igPt\y)
ReleaseDC_(GetDesktopWindow_(), ghDC)
Code: Select all
ghDC = GetDC_(0)
Using GetDC_(0) works with CrunchyRoll videos for me - the correct pixel color is returned. Both windowed (in-browser) and full-screen playback.tft wrote: Sun Aug 28, 2022 9:29 amWhen you want to grab a pixel from a video, for example Crunchiroll. this won't work.
Yes, GetDC_(0) covers the entire 'virtual desktop' across however many monitors there are. Works with any pixel grab for me (Now I have fixed the bug that silently messed it up).BarryG wrote: Sun Aug 28, 2022 11:31 am Using GetDC_(0) works with CrunchyRoll videos for me - the correct pixel color is returned. Both windowed (in-browser) and full-screen playback.