Solved C++ ImGui Hook pls

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

YAKOPS123

Newbie
Full Member
Mar 30, 2016
11
62
0
C++:
bool Hookbool HookD3D()
{

}
C++:
HRESULT __stdcall hk_Reset(IDirect3DDevice9 * pDevice, D3DPRESENT_PARAMETERS * d3dpp)
{

}
I do not know what to do​
 

Icew0lf

Software Ninjaneer
Dank Tier VIP
Fleep Tier Donator
Aug 20, 2013
604
17,558
43
https://guidedhacking.com/threads/guide-to-imgui-hooks-for-game-hack-menus.13993/

your missing the initialization (including Font) in Endscene like:
C++:
    if (!g_bwasInitialized)
    {
        ImGuiIO& io = ImGui::GetIO();
        io.DeltaTime = 1.0f / 60.0f;
        D3DDEVICE_CREATION_PARAMETERS d3dcp{ 0 };
        pDev->GetCreationParameters(&d3dcp);
        io.Fonts->AddFontDefault();
        ImGui_ImplDX9_Init(d3dcp.hFocusWindow, pDev);
        g_bwasInitialized = true;
    }
also you need to include the d3d9 headers and the imgui_internal.h
i wasnt able to get it running myself btw, but it doesnt crash - i just dont see any arrow when i press INSERT(didnt added the menu /sliders etc yet).


best regards
 
Last edited by a moderator:

Teuvin

now I am become Death
Dank Tier VIP
Trump Tier Donator
Dec 8, 2016
403
10,388
65
Sorry for the spam mods but: LOL
 

YAKOPS123

Newbie
Full Member
Mar 30, 2016
11
62
0
have a look in the tutorial video from Oneshot again: https://www.youtube.com/watch?v=fK2MViLEu-Q&t=1458s

your missing the initialization (including Font) in Endscene like:
C++:
	if (!g_bwasInitialized)
	{
		ImGuiIO& io = ImGui::GetIO();
		io.DeltaTime = 1.0f / 60.0f;
		D3DDEVICE_CREATION_PARAMETERS d3dcp{ 0 };
		pDev->GetCreationParameters(&d3dcp);
		io.Fonts->AddFontDefault();
		ImGui_ImplDX9_Init(d3dcp.hFocusWindow, pDev);
		g_bwasInitialized = true;
	}
also you need to include the d3d9 headers and the imgui_internal.h
i wasnt able to get it running myself btw, but it doesnt crash - i just dont see any arrow when i press INSERT(didnt added the menu /sliders etc yet).

Would be awesome to be able to see Oneshots projectfiles to compare/ use as a base.

best regards
Thnx man ı love you :D :lol::lol::lol::lol::lol: it's work
 

YAKOPS123

Newbie
Full Member
Mar 30, 2016
11
62
0
lpdevice = DX9Hook::GetLpDeviceFromEndSceneDetour();
lpdevice->GetCreationParameters(&cParam);
ImGui_ImplDX9_Init(cParam.hFocusWindow, lpdevice);
DX9Hook::EnableVmtHook(lpdevice, hkEndScene);
ZeroMemory(&msg, sizeof(msg));
ImGui::GetIO().WantCaptureKeyboard = 1;
ImGui::GetIO().WantCaptureMouse = 1;
ImGui::GetIO().WantTextInput = 1;

DX9Hook = error ???
 
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