消息轰炸
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| #include <iostream> #include <Windows.h> #include <tchar.h> using namespace std; int main() { int i; cout << "请输入你想要轰炸的次数:" << endl; cin >> i; LPCWSTR str1 = _T("XXX"); HWND H = FindWindow(0, str1); while (i-- > 0) { SendMessage(H, WM_PASTE, 0, 0); SendMessage(H, WM_KEYDOWN, VK_RETURN, 0); }
}
|
挺好玩的哈哈哈哈哈,要找一个不会删你的铁子。