Writing text to screen

Posts 1–15 of 15 · Page 1 of 1
Writing text to screen
Hey guys ive tried just about every method i can think of just so i can write some text on the screen and i have sadly failed to do so due to them all being detected..can someone point me in the right direction here what should i be doing
Yeah, this is easy
First, you need to hook the game, there are much ways, you are probably looking for a directx method.
To hook combat arms with directx, you need to hook Reset and Present function, not endscene (its detected).
Before Ill post more information, you just could try using a newer base from mpgh.

Before Ill forget, use MS detours 1.5, its undetected and really good. Dont use other detours cuz they are or will be patched!

Hope I could help you, Ch40zz
Already got present hooked -_-
Quote Originally Posted by konsowa7 View Post
Already got present hooked -_-
You need to hook reset to reset the font each frame or it will crash, also dont forget to include the pdevice from the present ^^
Quote Originally Posted by NotRealPro View Post
You need to hook reset to reset the font each frame or it will crash, also dont forget to include the pdevice from the present ^^
Resetting the font each frame will drop your frame-rate by craploads
is microsoft detours detected?
Quote Originally Posted by konsowa7 View Post
is microsoft detours detected?
They still work from what i hear.
Hmm..but thats what i have been doing maybe its the version which version are u guys using, i have version 1.5 and when i hook present it draws on the screen but then after a few mins or when i try to join a game the game exits, any ideas?
oh and one more question do i have to hook something before i hook present and reset because i keep on getting the impression that im supposed to do that..?
And Finally are vtables detected, something like:
Code:
void APIENTRY HookAPI(LPVOID param)
{

	DWORD		hD3D, adr, *vTable;


	hD3D=0;
	do {
		hD3D = (DWORD)GetModuleHandleA("d3d9.dll");
		Sleep(25);
	} while(!hD3D);
	adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
	if(adr){
		memcpy(&vTable,(void *)(adr+2),4);
		oPresent = (HRESULT (WINAPI *)(LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect, HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion))(DetourFunction((PBYTE)vTable[17],(PBYTE)dPresent));
		//oEndScene = (HRESULT (WINAPI *)(LPDIRECT3DDEVICE9 pDevice))(DetourFunction((PBYTE)vTable[42],(PBYTE)dEndScene));
		//oReset = (HRESULT (WINAPI *)(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters))(DetourFunction((PBYTE)vTable[16],(PBYTE)dReset));
	}
	else
		MessageBoxA(NULL,"~Shit", "Hook", MB_OK);
	
};
What exactly is detected in that code is it the vtable or is it the actual detour function?

Please Help


Thanks,
Konsowa
Quote Originally Posted by NotRealPro View Post
You need to hook reset to reset the font each frame or it will crash, also dont forget to include the pdevice from the present ^^
That isn't what reset does :P
It is called when you alt tab/join a game i believe. But yes, he does need to hook it.
Can not hooking reset cause the game to crash when trying to join a game?
Theres nothing wrong with your code.
Just use UPX to crypt your dll...
Quote Originally Posted by Ch40zz-C0d3r View Post
Theres nothing wrong with your code.
Just use UPX to crypt your dll...
Okay i did that and it still crashed although i must say this time it did work for a lot longer before it crashed and i had lag issues too
can the lag be the reason it crashes?
Oh, now I see, it was commented -_-
Hook it, it will not crash if you join a game then!
You can do reset other ways too you know.
Yea when i said it crashed reset wasn't commented it was hooked..
any ideas?
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us