DevilCommander
Programmer
I been working with a dll wrapper and this function:
void Console(char *pcCommand) //Used to print to console, just like in-game
{
//post: writes pcCommand to Console
HWND MConsole = FindWindow(0, "Console");
EnumChildWindows(MConsole, EnumChildSendCommandProc,(LPARAM)pcCommand);
}
My question is how could I make it send back the offset so I could use it in this function?
typedef void (*Con_sole) (char *Console_txt,...);
Con_sole Console=(Con_sole)0x00000000;
if(GetAsyncKeyState(VK_F7)&1==1) Console("testingpassword");
void Console(char *pcCommand) //Used to print to console, just like in-game
{
//post: writes pcCommand to Console
HWND MConsole = FindWindow(0, "Console");
EnumChildWindows(MConsole, EnumChildSendCommandProc,(LPARAM)pcCommand);
}
My question is how could I make it send back the offset so I could use it in this function?
typedef void (*Con_sole) (char *Console_txt,...);
Con_sole Console=(Con_sole)0x00000000;
if(GetAsyncKeyState(VK_F7)&1==1) Console("testingpassword");