Hi i am trying to screen and scan my full monitor ( not just abit of it )
this is what i have so far
RGBQUAD * pPixels;
int TimeTakenScreenAndScan;
while(true)
{
if(!GetAsyncKeyState('X'))
{
TimeTakenScreenAndScan = clock();
if(!TakeScreenShot(aimthr->GameWindow, bm, hbmap, bmi, hdcShot, hbmapOld, aimthr->AppWnd))
break;
HBITMAP hbmapNew = CreateCompatibleBitmap(hdcShot, rcWindow.right - rcWindow.left, rcWindow.bottom - rcWindow.top);
HDC hdcShotNew= CreateCompatibleDC(hdcShot);
HBITMAP OldBmp = (HBITMAP) SelectObject(hdcShotNew, hbmapNew);
BitBlt(hdcShotNew, 0, 0, rcWindow.right - rcWindow.left, rcWindow.bottom - rcWindow.top, hdcShot, 0, 0, SRCCOPY);
void ScanBMP(ScanContents * scan)
{
for(int y = (scan->RcWindow.bottom - scan->RcWindow.top)/4;
y < ((scan->RcWindow.bottom - scan->RcWindow.top) - (scan->RcWindow.bottom - scan->RcWindow.top)/3.5);
y++)
{
for(int x = (scan->RcWindow.bottom - scan->RcWindow.top)/4;
x < ((scan->RcWindow.bottom - scan->RcWindow.top) - (scan->RcWindow.bottom - scan->RcWindow.top)/4);
x++)
{
SetCursorPos(x+scan->RcWindow.left, (y+4)+scan->RcWindow.top);
if(CompareColour(scan->PPixels, scan->Bm.bmHeight, scan->Bm.bmWidth, x, y))
{
//SetCursorPos(x+scan->RcWindow.left, (y+4)+scan->RcWindow.top);
int z = x;
while(z <(int)((scan->RcWindow.right - scan->RcWindow.left)-(scan->RcWindow.right - scan->RcWindow.left)/4))
{
if(!CompareColour(scan->PPixels, scan->Bm.bmHeight, scan->Bm.bmWidth, z, y))
{
break;
}
z++;
}
This is just part of my script wondering if any one could help me Turn this into Full screen scanning ? I have tried looking but not alot of answers out there
Thank
Johnmann