RëÐëMÞÌØñ Admin
Messages : 47 Reputation : 13 Date d'inscription : 2009-12-11 Localisation : France
| Subject: Trigger bot test Sat 2 Jan - 17:47 | |
| I'm currently working on a triggerbot and i haven't been able to get it working smoothly. In halo the crosshair changes color when it is over the enemy, so i read the memory for 0x01 (that's when it turns red; and when i should shoot). - Quote :
- private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) {
HWND hWinampAL = FindWindow(NULL, _T("Halo")); DWORD dwProcessID = 0; GetWindowThreadProcessId(hWinampAL, &dwProcessID); HANDLE hWinamp = OpenProcess(PROCESS_VM_OPERATION | PROCESS_VM_WRITE, FALSE, dwProcessID); if(hWinampAL) { byte Val01; ReadProcessMemory(hWinamp, (LPVOID)0x4BAD08CC, &Val01, 1, NULL); if(Val01 = 0x01) // problem right here { mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 ); mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 ); } else{} } }
| |
|