d3d thing

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Szaka

Coder
Full Member
Nobleman
Mar 14, 2013
161
718
3
Hello. I would like to build in a console hack into d3d game. When i press ~ my console should popup and i should be able to type some commands processed by my function handling the input. Do anyone has experience n doin such stuff?
And second, id like to draw on the ground a polygon, with 4 coords. How to?

the game is not mine ofc, this should be external tool.
 

Szaka

Coder
Full Member
Nobleman
Mar 14, 2013
161
718
3
what the... i wrote 2 questions

So my first question was how to build in a concole into game. So i press ~ and console pops up so i can enter commands and process them inside my function
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
.
.
Polygon, 4 coords? Rectangle, Square, what??

Learn trig and the math behind whatever API you're using for drawing..

Seems to me like you've skipped some vital steps in programming. Your console thingy can be simply achieved with little bit of coding knowledge. Draw a textbox, handle keyboard input, compare against your commands.. profit?
 
Last edited:

NTvalk

Hacker
Meme Tier VIP
Jul 6, 2013
499
3,108
8
The closest to the console with ~ like in call of duty is probably this:

C++:
void setConsole(){
	static int i = 0;
	if (i == 0){
		AllocConsole();

		HANDLE handle_out = GetStdHandle(STD_OUTPUT_HANDLE);
		int hCrt = _open_osfhandle((long)handle_out, _O_TEXT);
		FILE* hf_out = _fdopen(hCrt, "w");
		setvbuf(hf_out, NULL, _IONBF, 1);
		*stdout = *hf_out;

		HANDLE handle_in = GetStdHandle(STD_INPUT_HANDLE);
		hCrt = _open_osfhandle((long)handle_in, _O_TEXT);
		FILE* hf_in = _fdopen(hCrt, "r");
		setvbuf(hf_in, NULL, _IONBF, 128);
		*stdin = *hf_in;
		i++;
	}
}
This will create a console in a new window, just call this function once and you can use printf() and scanf() etc etc.
This code isnt mine.

EDIT: but if you dont want to create a new window you really need to learn d3d.
 
Last edited:

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
i didnt program in d3d so i ask
So you want to learn how to do it? Or am I missing? Judging by the thread title you are asking for d3d related help.

If so, grab a d3d book, or read about specifically drawing polygons with it, quite straightforward but too much to hand out on a plate. And this console thing you are trying to do should be a relatively cool and simple project for yourself to do from scratch I reckon.
 

Szaka

Coder
Full Member
Nobleman
Mar 14, 2013
161
718
3
sure i will read d3d.

NVtalk: i know allocconsole but i want it to be part of main window
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
The closest to the console with ~ like in call of duty is probably this:

C++:
void setConsole(){
	static int i = 0;
	if (i == 0){
		AllocConsole();

		HANDLE handle_out = GetStdHandle(STD_OUTPUT_HANDLE);
		int hCrt = _open_osfhandle((long)handle_out, _O_TEXT);
		FILE* hf_out = _fdopen(hCrt, "w");
		setvbuf(hf_out, NULL, _IONBF, 1);
		*stdout = *hf_out;

		HANDLE handle_in = GetStdHandle(STD_INPUT_HANDLE);
		hCrt = _open_osfhandle((long)handle_in, _O_TEXT);
		FILE* hf_in = _fdopen(hCrt, "r");
		setvbuf(hf_in, NULL, _IONBF, 128);
		*stdin = *hf_in;
		i++;
	}
}
This will create a console in a new window, just call this function once and you can use printf() and scanf() etc etc.
This code isnt mine.
Can achieve the same result with 4 lines. Anyways I thought he wanted to be in d3d

C++:
AllocConsole();
freopen("CONIN$", "r", stdin); 
freopen("CONOUT$", "w", stdout); 
freopen("CONOUT$", "w", stderr);
And just use cout & cin as you are used to

Edit: Nvm so it still was d3d..
 

Szaka

Coder
Full Member
Nobleman
Mar 14, 2013
161
718
3
yeah i found it too. It looks million times easier than i expected

NVtalk got skype?
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods