TRY GO TO NEXT PAGE OF CODING
[[[[
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)0x485E10;
Thank me
[[[
What the title says please link me, thanks
zackwpulaski
TRY GO TO NEXT PAGE OF CODING
[[[[
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)0x485E10;
Thank me
[[[
zackwpulaski (12-02-2010)
This works, but you have to call it from within a thread from the game. The simplest way to do this would be to hook a DirectX function and call it from there.
I'm not going to tell you/show you how to do it because there are WELL over 9000 tutorials/example source on this site and google.
Departure (12-02-2010)
@Apoc91
Nice of you to explain that to him, when I first came on here no one mentioned that to me and I spent over 1 week trying to work out why my converted function wasn't working, At the time I thought they only hooked DX9 function for menus ect.. I know better now
I try to be helpful lol. The way I see it, we were all starting out at some point and that little extra help is the difference in someone taking the time to learn and someone just thinking it's an impossible feat. It always discouraged me when I first started programming when I'd ask questions and the only responses I'd get where "Lol noob, that's so easy". It wasn't the fact that I wouldn't google it was just that I needed a little more explanation.
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
There's some things you just can't google, and really, after you get past the DLL injection, the MSDN isn't of much help either.
Google tends to bring up a lot of posts of people further saying "GOOGLE IT NOOB" then it turns into a never-ending chain of finding absolutely nothing. I personally find it's faster to ask a quick question on a forum of people that's already been there and done what I'm attempting -- granted, I don't ask directly HOW to do it, I may ask for some insight on where I could look or something.
I've never had that problem with Googling actually. What I need generally comes through 10 - 20 pages of research, plus more interesting information I wasn't aware of.
MSDN is very useful - you won't ever remember every WinAPI function and its parameters. Just make sure you use Google to search the MSDN, and not MSDN's Bing-powered search.
I see, I usually google and the first page, maybe page and a half will be nothing but responses about "just google it" then I start stumbling on some answers.
And, I know how to use the MSDN, I was just stating it's not needed much after you get past the DLL injection (Well, I haven't really needed it /shrug)