void ptCommand(const char* Command)
{
_asm {
pushad
push Command
mov eax, LTClientEXE
call eax
add esp, 0x4
popad
}
}

VOID Console::ptCommand( CONST CHAR * Command )
{
if( *(BYTE*)GameStatus == InGame )
{
__asm
{
PUSHAD
PUSH Command
MOV EAX, LTClientEXE
CALL EAX
ADD ESP, 0x4
POPAD
}
}
}
if (YOUR HOTKEY )
{
this->ptCommand ( YOUR ACTIVE HACK HERE );
} else {
this->ptCommand ( YOUR OFF HACK HERE );
}
}

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
}
}