-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainDlg.cpp
204 lines (186 loc) · 4.56 KB
/
MainDlg.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// MainDlg.cpp: 实现文件
//
#include "pch.h"
#include "MFCLibrary7.h"
#include "MainDlg.h"
#include "afxdialogex.h"
#include "GameManager.h"
#include <iostream>
#include <string>
#include <sstream>
#include <windows.h>
// MainDlg 对话框
IMPLEMENT_DYNAMIC(MainDlg, CDialogEx)
MainDlg::MainDlg(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_DIALOG1, pParent)
{
}
MainDlg::~MainDlg()
{
}
BEGIN_MESSAGE_MAP(MainDlg, CDialogEx)
ON_BN_CLICKED(IDC_BUTTON3, &MainDlg::OnBnClickedButton3)
ON_BN_CLICKED(IDC_BUTTON1, &MainDlg::OnBnClickedButton1)
ON_BN_CLICKED(IDC_BUTTON9, &MainDlg::OnBnClickedButton9)
ON_BN_CLICKED(IDC_BUTTON15, &MainDlg::OnBnClickedButton15)
ON_BN_CLICKED(IDC_BUTTON19, &MainDlg::OnBnClickedButton19)
END_MESSAGE_MAP()
// MainDlg 消息处理程序
// 全屏攻击
void MainDlg::OnBnClickedButton3()
{
// TODO: 在此添加控件通知处理程序代码
GameCall::FullScreenAttack();
GameCall::Bulletin(L"开启全屏攻击!");
}
//秒杀
void MainDlg::OnBnClickedButton9()
{
// TODO: 在此添加控件通知处理程序代码
GameCall::DoubleAttack();
GameCall::Bulletin(L"开启秒杀");
}
//测试自动放技能
void MainDlg::OnBnClickedButton15()
{
// TODO: 在此添加控件通知处理程序代码
GameCall::AutoSkill();
}
// 测试自动刷图(格蓝迪)
void MainDlg::OnBnClickedButton19()
{
// TODO: 在此添加控件通知处理程序代码
HANDLE hThread = ::CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)GameManager::AutoAttack, NULL, NULL, NULL);
CloseHandle(hThread);
}
// 测试分解
void MainDlg::OnBnClickedButton1()
{
// TODO: 在此添加控件通知处理程序代码
GameCall::BreakDownEquipment(9);
GameCall::Bulletin(L"分解成功!");
}
/*
//第一个图,门没开,并且还有怪
while (!GameCall::IsOpenDoor() && GameCall::IsHaveMonster()) {
//一直按X
GameCall::MemKeyBorad(314, 3);
}
//吸取物品
GameCall::PickUp();
//有物品就按X
while (GameCall::IsHaveGoodsNeedPickUp()) {
//一直按X
GameCall::MemKeyBorad(314, 30);
}
Sleep(500);
GameCall::Bulletin(L"通过第1个图");
//第二个图
GameCall::PassMap(1);
GameCall::Bulletin(L"通过第2个图");
Sleep(500);
while (!GameCall::IsOpenDoor() && GameCall::IsHaveMonster()) {
//一直按X
GameCall::MemKeyBorad(314, 3);
}
//吸取物品
GameCall::PickUp();
//有物品就按X
while (GameCall::IsHaveGoodsNeedPickUp()) {
//一直按X
GameCall::MemKeyBorad(314, 30);
}
//第三个图
GameCall::PassMap(1);
GameCall::Bulletin(L"通过第3个图");
Sleep(500);
while (!GameCall::IsOpenDoor() && GameCall::IsHaveMonster()) {
//一直按X
GameCall::MemKeyBorad(314, 3);
}
//吸取物品
GameCall::PickUp();
//有物品就按X
while (GameCall::IsHaveGoodsNeedPickUp()) {
//一直按X
GameCall::MemKeyBorad(314, 30);
}
//第四个图
GameCall::PassMap(3);
GameCall::Bulletin(L"通过第4个图");
Sleep(500);
while (!GameCall::IsOpenDoor() && GameCall::IsHaveMonster()) {
//一直按X
GameCall::MemKeyBorad(314, 3);
}
//吸取物品
Sleep(500);
GameCall::PickUp();
Sleep(500);
//有物品就按X
while (GameCall::IsHaveGoodsNeedPickUp()) {
//一直按X
GameCall::MemKeyBorad(314, 30);
}
Sleep(500);
//第5个图
GameCall::PassMap(3);
GameCall::Bulletin(L"通过第5个图");
Sleep(500);
while (!GameCall::IsOpenDoor() && GameCall::IsHaveMonster()) {
//一直按X
GameCall::MemKeyBorad(314, 3);
}
//吸取物品
Sleep(500);
GameCall::PickUp();
Sleep(500);
//有物品就按X
while (GameCall::IsHaveGoodsNeedPickUp()) {
//一直按X
GameCall::MemKeyBorad(314, 30);
}
Sleep(500);
//第6个图
GameCall::PassMap(1);
GameCall::Bulletin(L"通过第6个图");
Sleep(500);
while (!GameCall::IsOpenDoor() && GameCall::IsHaveMonster()) {
//一直按X
GameCall::MemKeyBorad(314, 3);
}
//吸取物品
Sleep(500);
GameCall::PickUp();
Sleep(500);
//有物品就按X
while (GameCall::IsHaveGoodsNeedPickUp()) {
//一直按X
GameCall::MemKeyBorad(314, 30);
}
Sleep(500);
//第7个图
GameCall::PassMap(2);
GameCall::Bulletin(L"通过第7个图");
Sleep(200);
while (!GameCall::IsOpenDoor() && GameCall::IsHaveMonster()) {
//一直按X
GameCall::MemKeyBorad(314, 1);
}
//吸取物品
Sleep(500);
GameCall::PickUp();
Sleep(500);
//有物品就按X
while (GameCall::IsHaveGoodsNeedPickUp()) {
//一直按X
GameCall::MemKeyBorad(314, 30);
}
Sleep(500);
//判断营火出现
if (GameCall::IsHaveFire()) {
Sleep(1500);
GameCall::GooutMap();//出图
Sleep(8000);
}
*/