Halo PC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Halo PC

Halo Trial - Halo Full - Halo Custom Edition - Halo 2
 
HomeLatest imagesSearchRegisterLog in

 

 Trigger bot test

Go down 
AuthorMessage
RëÐëMÞÌØñ
Admin
RëÐëMÞÌØñ


Messages : 47
Reputation : 13
Date d'inscription : 2009-12-11
Localisation : France

Trigger bot test Empty
PostSubject: Trigger bot test   Trigger bot test I_icon_minitimeSat 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{}
}
}
Back to top Go down
https://halo.forumburkina.com
 
Trigger bot test
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Halo PC :: ⇨ Hack and cheat ⇦ :: Aimbots-
Jump to: