能力值:
( LV2,RANK:10 )
|
-
-
[求助]发VC++的问题。。求解
CRect rect,rect1;
gameh=::FindWindow(NULL,_T("强暴"));
::GetWindowRect(gameh,&rect);
//::GetWindowRect(gameh,&rect1);
//rect.left+=487;rect.top+=283;rect.right=rect.left+50;rect.bottom=rect.top+50;
HBITMAP hMap = CopyScreenToBitmap(rect);
int fx=0,fy=0;
//int add=FindBmpEx(rect.left,rect.top,rect.right,rect.bottom,_T("是的.bmp"),1,1,1,fx,fy);
//int add=FindBmpEx(480,73,1000,866,_T("是的.bmp"),1,1,1,fx,fy);
调试时明显看到数值正确传过去了。但第一条传RECT的就找不到图。。直接传数字的那个就行;很奇怪。。
我也试过把定int XX来保存RECT的四个值。。然后再传。一样,,也没成功找到图。。
这是个屏幕找图函数FindBmpEx()。。
|