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
| #include <windows.h> #include <stdlib.h> #include <malloc.h> #include <memory.h> #include <tchar.h> void CALLBACK MY(HWND hwnd,UINT a,UINT b,DWORD c); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { SetTimer(NULL,1,1000,MY); MessageBox(NULL,"","",0); return 0; }
void CALLBACK MY(HWND hwnd,UINT a,UINT b,DWORD c) { HWND qqhand = FindWindow("TXGuiFoundation", " Marc"); SendMessage(qqhand, WM_CHAR, 'I', 0); SendMessage(qqhand, WM_CHAR, ' ', 0); SendMessage(qqhand, WM_CHAR, 'l', 0); SendMessage(qqhand, WM_CHAR, 'o', 0); SendMessage(qqhand, WM_CHAR, 'v', 0); SendMessage(qqhand, WM_CHAR, 'e', 0); SendMessage(qqhand, WM_CHAR, ' ', 0); SendMessage(qqhand, WM_CHAR, 'y', 0); SendMessage(qqhand, WM_CHAR, 'o', 0); SendMessage(qqhand, WM_CHAR, 'u', 0); SendMessage(qqhand, WM_KEYDOWN, VK_RETURN, 0); }
|