#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
POINT p;
HWND hwnd = GetDesktopWindow();
HDC hdc = GetDC(hwnd);
while(true)
{
GetCursorPos(&p);
COLORREF rgb = GetPixel(hdc, p.x, p.y);
COLORREF hey = GetRValue(rgb);
COLORREF hey2 = GetGValue(rgb);
COLORREF hey3 = GetBValue(rgb);
if(GetAsyncKeyState(VK_SHIFT)&1){cout<<hey<<" "<<hey2<<" "<< hey3<<"\n";}
}
}
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
POINT p;
HWND hwnd = GetDesktopWindow();
HDC hdc = GetDC(hwnd);
RECT rect;
while(true)
{
GetClientRect(hwnd, &rect);
ClientToScreen(hwnd, &p);
GetCursorPos(&p);
COLORREF rgb = GetPixel(hdc, p.x, p.y);
COLORREF hey = GetRValue(rgb);
COLORREF hey2 = GetGValue(rgb);
COLORREF hey3 = GetBValue(rgb);
if(GetAsyncKeyState(VK_SHIFT)&1){cout<<hey<<" "<<hey2<<" "<< hey3<<"\n";}
if(hey == 211 && hey2 == 215 && hey3 == 243){MessageBox(hwnd, TEXT("YOU DID IT") ,TEXT("FINALLY"), MB_OK);}
