Эх сурвалжийг харах

新增ClickDlgSetup函数扩展,未实现。

sat23 4 жил өмнө
parent
commit
0d4f060c9c

+ 11 - 0
GameAssist/GameAssist/CAction.cpp

@@ -334,6 +334,17 @@ SRAND(80,120);
 		return true;
 	}
 
+	bool CAction::ClickDlgSetup(std::vector<std::string> vtOptions)
+	{
+		std::vector<std::string>::iterator it = vtOptions.begin();
+		for(;it != vtOptions.end(); it++)
+		{
+			
+		}
+
+		return false;
+	}
+
 	bool CAction::FindNPCByWorldMap(LPCTSTR lpszNPCName)
 	{
 		CRect rc;

+ 2 - 0
GameAssist/GameAssist/CAction.h

@@ -83,6 +83,8 @@ public:
 		bool IsWattingAttack(int nAttackNPCType);
 		// 单击游戏对话框里的选项;
 		bool ClickDlgSetup(LPCSTR lpszTemplateImage);
+		// 单击游戏对话框里的多层选项;
+		bool ClickDlgSetup(std::vector<std::string> vtOptions);
 
 		// 查找NPC:通过世界地图来寻路;
 		bool FindNPCByWorldMap(LPCTSTR lpszNPCName);

+ 6 - 6
GameAssist/GameAssist/GameAssistDlg.cpp

@@ -222,7 +222,7 @@ void CGameAssistDlg::OnBnClickedOpengame() // 
 	// TODO: 在此添加控件通知处理程序代码
 	if (!PathFileExists(GameGlobal::g_szGameApp))
 	{
-		MessageBox(_T("游戏程序不存在", "温馨提示"));
+		MessageBox(_T("游戏程序不存在"), _T("温馨提示"));
 		return;
 	}
 
@@ -554,7 +554,7 @@ void CGameAssistDlg::OnBnClickedButton12()
 	if (pGameInfo && pGameInfo->pAction)
 	{
 		GameAssist::CAction* pAction = (GameAssist::CAction*)pGameInfo->pAction;
-		while (GameGlobal::nAttackCount--)
+		while (true)
 		{
 			BOOL bFirst = TRUE;
 			while (pAction->IsBattle())
@@ -563,8 +563,8 @@ void CGameAssistDlg::OnBnClickedButton12()
 				{
 					if (bFirst)
 					{
-						pAction->SendKey(VK_F1);
-						//Sleep(30);
+						pAction->SendKey(VK_F6);
+						Sleep(30);
 						//pAction->MouseClick({ 226, 158 });
 						bFirst = FALSE;
 					}
@@ -573,10 +573,10 @@ void CGameAssistDlg::OnBnClickedButton12()
 						pAction->SendKey(VK_A, FALSE, TRUE);
 					}
 				}
-				Sleep(900);
+				Sleep(650);
 			}
 
-			Sleep(600);
+			Sleep(800);
 		}
 	}	
 }