[Help]GetPixel()
Here is my code:
My problem is that, idk how i would make it tell me the color. Like i would put cout<<blahblha, but idk what to do. Thanks for ur help.
Code:
#include <iostream>
#include <windows.h>
#include "Getasynckeystates.h"
int main()
{
POINT a;
while(true)
{
HWND hwnd = FindWindow(NULL, NULL);
HDC hdc = GetDC(hwnd);
if(GetAsyncKeyState(sh) &1){
GetCursorPos(&a);
GetPixel(hdc, a.x, a.y);
Sleep(20);
}
}
}
.