|
@@ -5,7 +5,7 @@
|
|
|
#include "stdafx.h"
|
|
|
#include "GameAssist.h"
|
|
|
#include "GameAssistDlg.h"
|
|
|
-#include "VideoDXGICaptor.h"
|
|
|
+//#include "VideoDXGICaptor.h"
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
#define new DEBUG_NEW
|
|
@@ -164,6 +164,13 @@ void CGameAssistDlg::OnBnClickedOpengame()
|
|
|
TCHAR szWinText[MAX_PATH] = {0};
|
|
|
::GetWindowText(hProWnd, szWinText, MAX_PATH);
|
|
|
|
|
|
+ Sleep(5000);
|
|
|
+ GAssist::MouseMove(hProWnd, CPoint(100,100), CPoint(200,200));
|
|
|
+ Sleep(2000);
|
|
|
+ GAssist::MouseMove(hProWnd, CPoint(100,100), CPoint(250,250));
|
|
|
+ Sleep(2000);
|
|
|
+ GAssist::MouseMove(hProWnd, CPoint(100,100), CPoint(350,350));
|
|
|
+
|
|
|
RECT rc = {0,0,500,500};
|
|
|
HBITMAP hb = GAssist::CopyDC2Bitmap(hProWnd, &rc);
|
|
|
GAssist::SaveBitmap(hb, "D:\\1.bmp");
|
|
@@ -305,12 +312,12 @@ void CGameAssistDlg::OnBnClickedButton2()
|
|
|
{
|
|
|
// TODO: 在此添加控件通知处理程序代码
|
|
|
|
|
|
- VideoDXGICaptor vdx;
|
|
|
- if (vdx.Init())
|
|
|
- {
|
|
|
- INT len = 1024 * 1024 * 1024;
|
|
|
- BYTE* pData = new BYTE[len];
|
|
|
- vdx.CaptureImage(pData, len);
|
|
|
- vdx.Deinit();
|
|
|
- }
|
|
|
+// VideoDXGICaptor vdx;
|
|
|
+// if (vdx.Init())
|
|
|
+// {
|
|
|
+// INT len = 1024 * 1024 * 1024;
|
|
|
+// BYTE* pData = new BYTE[len];
|
|
|
+// vdx.CaptureImage(pData, len);
|
|
|
+// vdx.Deinit();
|
|
|
+// }
|
|
|
}
|