I made a cod2 trainer, where I POKE memory address C60A40 02
I set hotkey function,
F8 poke the address to 2 ( wallhack on )
F7 poke the address to 0 ( wallhack off )
Okay, so I have Wallhack now. The trainer is undetected.
Now, I want to have clean pb shots.
I am new to detouring, hooking. I already read about it a lot, but I'm still confused a little bit.
I want to do the method, what sycore wrote .
Originally Posted by sycore
I work with Visual C++ 2008
This is my config
This is my code. Before picture takes I want the DLL to press F7 (wallhack off ) and when the picture is done then F8 . (wallhack on )
#pragma comment(lib, "detours.lib")
VOID ( *Com_Frame )( VOID ) = (void (__cdecl *)(void))0x414B20;
char (__cdecl *p_strcpy)(char *Dest, char *String);
char my_strcpy(char *Dest, char *String)
// Log( "[ STRCPY: %s ]\n",String );
if( strstr( String, "Attempted:" ) )
keybd_event(VK_F7, 0, 0, 0);
keybd_event(VK_F7, 0, KEYEVENTF_KEYUP, 0);
keybd_event(VK_F8, 0, 0, 0);
keybd_event(VK_F8, 0, KEYEVENTF_KEYUP, 0);
return p_strcpy( Dest, String );
In visual studio I go BUILD > BUILD Samplehook
now I got a DLL
I inject the DLL with Winject.exe to cod2
but it doesn't do anything.
Can someone help me ? I already used the search button, already read a lot about it but I still can't get it work.