Solved Making A GUI

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

IMK3LL3N

Newbie
Full Member
Oct 28, 2014
7
122
0
Can anyone help me or link me to a tutorial on how to make a gui for CSGO? I'm in great need of it.
 

Luciz

Coder
Dank Tier Donator
Nobleman
Jul 10, 2014
101
458
3
Talking about an external hack btw, say I have my aimbot and esp and wanted to make a simple menu such as it say ESP [ ] and Aimbot [ ] under it, How would I link the aimbot to when I click that box and same with ESP?
Heres an example of what my menu.h looks like.

C++:
#include "Defines.h"
//MENU Items
#define Menu_Items 6

//ITEMS
#define ESP 0
#define BOX 1
#define BONES 2
#define SNAP 3
#define AIMBOT 4
#define RCS 5

struct MenuItem
{
	string name;
	bool on;
}; 

class cMenu
{
public:
	void InitializeMenuItems(LPDIRECT3DDEVICE9 pDevice);
	void DrawMenu(LPDIRECT3DDEVICE9 pDevice);
	void KeyBoardInput();
	void ManageMenu();
	void GUIClick(int ButtonID);

	int menux, menuy, menux2, menuy2;
	bool menuon, removee;
	LPD3DXFONT menufont;
	MenuItem menui[Menu_Items];
	int MenuPosition;
private:
};
EDIT: Oh and heres the actual clicking
C++:
void cMenu::GUIClick(int ButtonID)
{
	POINT CPos;
	GetCursorPos(&CPos);

	int MinX = menux + 11;
	int MinY = menuy + 25 * ButtonID + 13;

	int MaxX = MinX + 11;
	int MaxY = MinY + 11;

	if (CPos.x >= MinX && CPos.y >= MinY && CPos.x <= MaxX && CPos.y <= MaxY)
		menui[ButtonID].on = !menui[ButtonID].on;
}
Basicly you get the start point of your box then you take startpoint + w/h.

Lets say we make a box that is x = 200 & y = 100, width = 10 and height = 5.
Now the MinX = 200, MinY = 100, MaxX = MinX + width and MaxY = MinY + height.
Get it?
 
Last edited:

Luciz

Coder
Dank Tier Donator
Nobleman
Jul 10, 2014
101
458
3
Can anyone help me or link me to a tutorial on how to make a gui for CSGO? I'm in great need of it.
It's really easy, all you gotta do is to create a class with some functions and variables, then define all items and make amount of items, then a for (i < menu_items; etc..) and you draw your stuff * i
 

IMK3LL3N

Newbie
Full Member
Oct 28, 2014
7
122
0
It's really easy, all you gotta do is to create a class with some functions and variables, then define all items and make amount of items, then a for (i < menu_items; etc..) and you draw your stuff * i
I know the GFX part, but I'm having trouble learning to link this all.
 

IMK3LL3N

Newbie
Full Member
Oct 28, 2014
7
122
0
Talking about an external hack btw, say I have my aimbot and esp and wanted to make a simple menu such as it say ESP [ ] and Aimbot [ ] under it, How would I link the aimbot to when I click that box and same with ESP?
 

IMK3LL3N

Newbie
Full Member
Oct 28, 2014
7
122
0
Heres an example of what my menu.h looks like.

C++:
#include "Defines.h"
//MENU Items
#define Menu_Items 6

//ITEMS
#define ESP 0
#define BOX 1
#define BONES 2
#define SNAP 3
#define AIMBOT 4
#define RCS 5

struct MenuItem
{
	string name;
	bool on;
}; 

class cMenu
{
public:
	void InitializeMenuItems(LPDIRECT3DDEVICE9 pDevice);
	void DrawMenu(LPDIRECT3DDEVICE9 pDevice);
	void KeyBoardInput();
	void ManageMenu();
	void GUIClick(int ButtonID);

	int menux, menuy, menux2, menuy2;
	bool menuon, removee;
	LPD3DXFONT menufont;
	MenuItem menui[Menu_Items];
	int MenuPosition;
private:
};
EDIT: Oh and heres the actual clicking
C++:
void cMenu::GUIClick(int ButtonID)
{
	POINT CPos;
	GetCursorPos(&CPos);

	int MinX = menux + 11;
	int MinY = menuy + 25 * ButtonID + 13;

	int MaxX = MinX + 11;
	int MaxY = MinY + 11;

	if (CPos.x >= MinX && CPos.y >= MinY && CPos.x <= MaxX && CPos.y <= MaxY)
		menui[ButtonID].on = !menui[ButtonID].on;
}
Basicly you get the start point of your box then you take startpoint + w/h.

Lets say we make a box that is x = 200 & y = 100, width = 10 and height = 5.
Now the MinX = 200, MinY = 100, MaxX = MinX + width and MaxY = MinY + height.
Get it?
Ok, thank you just clicked in my head. lol
 

IMK3LL3N

Newbie
Full Member
Oct 28, 2014
7
122
0
Heres an example of what my menu.h looks like.

C++:
#include "Defines.h"
//MENU Items
#define Menu_Items 6

//ITEMS
#define ESP 0
#define BOX 1
#define BONES 2
#define SNAP 3
#define AIMBOT 4
#define RCS 5

struct MenuItem
{
	string name;
	bool on;
}; 

class cMenu
{
public:
	void InitializeMenuItems(LPDIRECT3DDEVICE9 pDevice);
	void DrawMenu(LPDIRECT3DDEVICE9 pDevice);
	void KeyBoardInput();
	void ManageMenu();
	void GUIClick(int ButtonID);

	int menux, menuy, menux2, menuy2;
	bool menuon, removee;
	LPD3DXFONT menufont;
	MenuItem menui[Menu_Items];
	int MenuPosition;
private:
};
EDIT: Oh and heres the actual clicking
C++:
void cMenu::GUIClick(int ButtonID)
{
	POINT CPos;
	GetCursorPos(&CPos);

	int MinX = menux + 11;
	int MinY = menuy + 25 * ButtonID + 13;

	int MaxX = MinX + 11;
	int MaxY = MinY + 11;

	if (CPos.x >= MinX && CPos.y >= MinY && CPos.x <= MaxX && CPos.y <= MaxY)
		menui[ButtonID].on = !menui[ButtonID].on;
}
Basicly you get the start point of your box then you take startpoint + w/h.

Lets say we make a box that is x = 200 & y = 100, width = 10 and height = 5.
Now the MinX = 200, MinY = 100, MaxX = MinX + width and MaxY = MinY + height.
Get it?
Ok, thank you just clicked in my head. lol
 

zepixx

Newbie
Full Member
Aug 29, 2014
27
168
0
There are different programs that can help you draw a gui, ex. windows forms in visual studio. WPF can be used if you're coding in C#
 

gmastergreatee

Jr.Coder
Full Member
Nobleman
Aug 5, 2014
55
588
3
Make a winforms project in VS2005 and then copy the project to newer version. It's all too easy to do.
 
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.

Community Mods