HelpPushToConsole problems...

Posts 19 of 9 · Page 1 of 1
PushToConsole problems...
So I can't seem to get any PTC to work on my hotkey hack.... I had it working on a menu hack but could never get it to work on my hotkey base, even though it is the same :
Code:
void ptCommand(const char* Command)
{
	_asm {
		pushad
			push Command
			mov eax, LTClientEXE
			call eax
			add esp, 0x4
			popad
	}
}
My LTClientEXE is up to date, and this worked in my menu but doesn't in my hotkey

Thanks in advance
What address are you using?And for which version?
48B650=NA.
Not sure about EU.
I'm working for EU so it's 0x48B6B0
Quote Originally Posted by Genoble View Post
So I can't seem to get any PTC to work on my hotkey hack.... I had it working on a menu hack but could never get it to work on my hotkey base, even though it is the same :
Code:
void ptCommand(const char* Command)
{
	_asm {
		pushad
			push Command
			mov eax, LTClientEXE
			call eax
			add esp, 0x4
			popad
	}
}
My LTClientEXE is up to date, and this worked in my menu but doesn't in my hotkey

Thanks in advance
Code:
VOID Console::ptCommand( CONST CHAR * Command )
{
	if( *(BYTE*)GameStatus == InGame )
	{
		__asm 
		{
			PUSHAD
			PUSH Command
			MOV EAX, LTClientEXE
			CALL EAX
			ADD ESP, 0x4
			POPAD
		}
	}
}
this works for both of my hacks.

then:

Code:
if (YOUR HOTKEY  )
	{
		this->ptCommand ( YOUR ACTIVE HACK HERE );
	} else {
		this->ptCommand ( YOUR OFF HACK HERE );
	}
}
should work.
if not let me know.
ill try to help
Hmm I'll drop you a PM with some more code if you don't mind giving me a hand
no problem.
ill try man,
as long as its readable im more than happy to help
You don't need to pop a value from the stack since all you're doing is using the original function.

You can do without the pushad and popad.

You don't even need to call eax.
@Flengo

Pushad reserves all the registers before executing the following lines, then popad returns the registers back to the state it was in before the executing of the assembly statements. So yes while it may work without using pushad/popad you would be a idiot if you didn't reserve/restore the registers before executing your push values.
Departure is correct, and -Bl00d- He wasn't asking for working code, this is why we have leechers. Just explain how it works and how to properly use it....

Code:
void ptCommand(const char* Command)
{
	_asm {   //Declares we will work with ASM
		pushad
			push Command  //Pushes out string to the Stack
			mov eax, LTClientEXE  //Copies EAX(Register) to our Address
			call eax //Calls the register
			add esp, 0x4  //Adds 0x4 to ESP
			popad  //Pops all registers
	}
}
Now that we know how it works, it should be easy to use if your calling it correctly.
Posts 19 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?