随笔分类 -  c++

摘要:GameCheat 如果你的目标程序是x86/x64, 那么当前程序也需要编译为x84/x64 #include <iostream> #include <string> #include <vector> #include <regex> #include "GameCheatEx.h" usin 阅读全文
posted @ 2020-09-09 12:34 Ajanuw 阅读(313) 评论(0) 推荐(0)
摘要:https://github.com/januwA/GameCheat #include "pch.h" #include <iostream> #include <Windows.h> #include "GameCheat.h" using namespace std; struct Regs 阅读全文
posted @ 2020-09-05 17:57 Ajanuw 阅读(393) 评论(0) 推荐(0)
摘要:https://github.com/januwA/GameCheat #include "pch.h" #include <iostream> #include <Windows.h> #include "GameCheat.h" using namespace std; void __stdca 阅读全文
posted @ 2020-09-05 15:03 Ajanuw 阅读(298) 评论(0) 推荐(0)
摘要:#include <QtCore> #include <QTimer> QTimer *timer; timer = new QTimer(this); connect(timer, SIGNAL(timeout()), this, SLOT(exit_timeout())); // 1s后执行一次 阅读全文
posted @ 2020-09-03 17:16 Ajanuw 阅读(421) 评论(0) 推荐(0)
摘要:qdatetime doc 获取当前时间 QDateTime t1 = QDateTime::currentDateTime(); qDebug() << t1.toString("yyyy-MM-dd hh:mm:ss"); string to QDateTime QDateTime t1 = Q 阅读全文
posted @ 2020-09-03 16:13 Ajanuw 阅读(1530) 评论(0) 推荐(0)
摘要:#include <iostream> #include <Windows.h> #pragma comment(lib, "user32.lib") #pragma comment(lib, "advapi32.lib") int main() { // https://docs.microsof 阅读全文
posted @ 2020-09-03 15:11 Ajanuw 阅读(484) 评论(0) 推荐(0)
摘要:wchar_t to char #include <comdef.h> const wchar_t* exepath = L"d:\\中文 路径\\中文 路径.exe"; _bstr_t b(exepath); const char* c = b; printf("%s\n", c); MultiB 阅读全文
posted @ 2020-08-30 17:09 Ajanuw 阅读(70) 评论(0) 推荐(0)
摘要:注意看备注 https://docs.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getmodulefilenameexa #include <iostream> #include <Windows.h> #include <TlHelp 阅读全文
posted @ 2020-08-30 11:21 Ajanuw 阅读(571) 评论(0) 推荐(0)
摘要:#include <iostream> #include <Windows.h> using namespace std; int main() { EnumWindows([](HWND hwnd, LPARAM lParam) { DWORD pid = 0; GetWindowThreadPr 阅读全文
posted @ 2020-08-30 11:03 Ajanuw 阅读(2163) 评论(0) 推荐(0)
摘要:http://www.cplusplus.com/reference/regex/regex_replace/ #include <iostream> #include <regex> using namespace std; string mask = " 01 02 03 ?? ?? 0? 2? 阅读全文
posted @ 2020-08-29 14:28 Ajanuw 阅读(351) 评论(0) 推荐(0)
摘要:测试环境是x86 main #include <iostream> #include <Windows.h> #include <TlHelp32.h> #include <string.h> using namespace std; const string processName = "game 阅读全文
posted @ 2020-08-20 18:00 Ajanuw 阅读(484) 评论(0) 推荐(0)
摘要:#include <iostream> #include <Windows.h> #include <TlHelp32.h> using namespace std; typedef int(__stdcall* FUN1)(); FUN1 fun1; int main() { BYTE* newm 阅读全文
posted @ 2020-08-08 13:44 Ajanuw 阅读(413) 评论(0) 推荐(0)
摘要:int MyPlayTread2(const char* name) { cout << name << endl; return 0; } string s = "string"; s += " suo"; char* a = new char[s.size() + 1]; a[s.size()] 阅读全文
posted @ 2020-08-04 09:32 Ajanuw 阅读(292) 评论(0) 推荐(0)
摘要:Pointers 在getchar处断点,断点后,调试->窗口->反汇编 查看数据 main #include <iostream> #include <Windows.h> /* Player : object Name : string Health : integer Coins : inte 阅读全文
posted @ 2020-08-01 19:33 Ajanuw 阅读(364) 评论(0) 推荐(0)
摘要:类似CE的read/writeIntger函数(外部) 完整版项目在这里 #include <iostream> #include <Windows.h> #include <TlHelp32.h> #include <vector> #include <regex> #include <sstre 阅读全文
posted @ 2020-07-22 15:16 Ajanuw 阅读(199) 评论(0) 推荐(1)
摘要:#include <string> #include <vector> #include <regex> struct SplitListItem { std::string key; std::string value; }; std::vector<SplitListItem> splitStr 阅读全文
posted @ 2020-07-22 13:54 Ajanuw 阅读(217) 评论(0) 推荐(0)
摘要:有些窗口标题中含有中文,可能识别不出来,可以改一下 SetWindowTextW GetWindowTextW 设置: SetWindowTextW( (HWND)0x00370868/*窗口句柄*/, L"newTitle123231"/*新标题*/ ); 获取: int GetWindowTex 阅读全文
posted @ 2020-07-13 18:59 Ajanuw 阅读(3331) 评论(0) 推荐(0)
摘要:导入库 pro win32:LIBS += -lpsapi win32:LIBS += -lkernel32 获取列表 #include "mainwindow.h" #include "ui_mainwindow.h" #include <windows.h> #include <QtDebug> 阅读全文
posted @ 2020-05-08 10:32 Ajanuw 阅读(1315) 评论(0) 推荐(0)
摘要:"原文" 1. 将所需的库添加到您的qmake项目(.PRO文件) 2.在代码中包含所需的头文件。 3. 在程序开始时注册热键 ok... 阅读全文
posted @ 2020-05-08 08:18 Ajanuw 阅读(900) 评论(0) 推荐(1)
摘要:int lpdwProcessId; int id = GetWindowThreadProcessId((HWND)0x707d6, (LPDWORD)&lpdwProcessId); qDebug() << lpdwProcessId; // 进程ID qDebug() << id; // 线程 阅读全文
posted @ 2020-05-07 12:06 Ajanuw 阅读(2621) 评论(0) 推荐(0)