Yeah I put a ticker in that loop and if it was around 50% of actual picture I allowed it.
My last problem is getting the screenshot of the window.
Here is the code I found which I slitely modified.
Code:
PAINTSTRUCT ps;
HDC hdc=BeginPaint(hwnd,&ps);
HWND hWowWnd = FindWindow("World of Warcraft",NULL);
HDC hWowDC = GetDC(hWowWnd);
BitBlt(hdc,0,0,nScreenWidth,nScreenHeight,hWowDC,0,0,SRCCOPY);
So First I set the handle of the window to the World of Warcraft handle by using our friendly FindWindow function.
Then I create a compatibleDC from it...
then it bitblits the Wow DC
Now it should just take a screenshot of the Wow window and then blit it in my window, but for some reason it only copys whatever is ontop of the desktop?
Anyone know?