Hooking DirectInput C++

  Рет қаралды 10,642

CasualGamer

CasualGamer

Күн бұрын

We are Hooking DirectInput with C++.
With this we can block data, redirect it to a menu such as ImGui or even simulate input.
- Support the channel: www.paypal.com/cgi-bin/webscr...
- Music: Kaleidoscope by Alchemorph
- Code: github.com/CasualCoder91/Dire...
- Community Discord: / discord
Resources:
- GH Tutorial on Simulating Keyboard Input: guidedhacking.com/threads/how...
- COM Interface hooking: www.apriorit.com/dev-blog/222...

Пікірлер: 56
@crapyguy1234
@crapyguy1234 3 жыл бұрын
Great work as usual. Keep up the good work!!!!
@arthurgroll4906
@arthurgroll4906 3 жыл бұрын
Awesome video! Btw, I have already seen many of your videos and man, you explain everything very well. I remember I had to learn all these things on my own a few years ago, and it was really difficult because I was just lost and didn't even know where to start studying. I'm sure your videos are helping a lot of people that are starting to study game hacking and stuff. Keep up the hard work, I'm sure you'll soon hit a million subscribers!!! (btw, English is not my main language, so sorry about any grammar mistakes...)
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Thank you very much for the kind words :)
@oraclematon9277
@oraclematon9277 3 жыл бұрын
So good to watch your new video. Thnx for sharing ~! I've read the whole AD.
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Awesome! Thank you :) Happy New Year btw ^^
@harveythe8053
@harveythe8053 3 жыл бұрын
@CasualGamer Man this channel is sick, i hope you continue making these vids. Yours is the only place i feel like i come away learning something properly.
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Thanks :) will do
@jirihusak175
@jirihusak175 3 жыл бұрын
Hello, could you do a video about how to check if process is running for external cheats?
@johannex.
@johannex. 2 жыл бұрын
Amazing tutorial. Can i release key pressing instead c++ send input (this works good, but need arrow which not have scan codes)
@scavenger4813
@scavenger4813 3 жыл бұрын
I come here to see the intro ☺️
@zorro59_official
@zorro59_official 3 жыл бұрын
My Imgui is not clickable direxrx9 game called Combat arms Classic how can i fix that?
@begbarros
@begbarros 27 күн бұрын
Nice tut…what’s the difference of hooking dinput methods and just calling GetAsyncKeyState in the main loop?
@HeyWhoTheFuckAreYou
@HeyWhoTheFuckAreYou 3 жыл бұрын
How can I make background clicks so I can go about my business while my hidden game clicker clicks the buttons by itself? I tried to use SendMessage and PostMessage but it didn't work for me, it works on some Windows applications but not in CS: GO for which I am doing it.
@vaverix
@vaverix 3 жыл бұрын
@CasualGamer 7:17, line 24, getFunctionAddress function. Shouldn't be there "uintptr_t pFunction = avTable + index * sizeof(uintptr_t)"?
@casualgamer1791
@casualgamer1791 3 жыл бұрын
hmm well that would be an option i think but works as is Edit: ooh you mean because i had 9 in the video.... Yes you are right ofc. I fixed that in the GitHub project
@julianomoraes4207
@julianomoraes4207 5 күн бұрын
Help me, follow the entire process and step by step, but I can't lock the keyboard, only the mouse. help me please.
@hieuang907
@hieuang907 3 жыл бұрын
yead! thanks for video
@hieupc1307
@hieupc1307 2 жыл бұрын
bạn ơi cho mình hỏi với
@muhammadrizkihidayat6440
@muhammadrizkihidayat6440 6 ай бұрын
Hi, bro. how to make the directinput working even it lost focus? i've already hook SetCooperativeLevel and replace DISCL_FOREGROUND to DISCL_BACKGROUND but the game still can't simulate input when i'm in focus to other window. Thank you
@justaplebdontmindmeii452
@justaplebdontmindmeii452 3 жыл бұрын
1:18 im totaly looking at that damn graph.
@user-sd6wq1dy5i
@user-sd6wq1dy5i Жыл бұрын
I have DirectInput8Create output "DirectInput8Create failed!" how did you manage to run halo in a window???
@bambou3715
@bambou3715 2 жыл бұрын
Nice tutorial but how to send theses values to imgui?
@corejake
@corejake 2 жыл бұрын
good thing you blurred the background on 1:20, I just couldn't take my eyes off of it.
@mariusschubert4882
@mariusschubert4882 3 жыл бұрын
Hey, first of all thx for the video So, I do have a program, that looks for a special event (OpenCV detection of an object) and then plays a sound when found. so it presses "x" on the keyboard (ingame command for scan) every "y"seconds. Can't run in the background tho, so I set it up + the game in a VM, which costs a lot of resources and is somewhat limiting. thats why I was looking for hooking the input and then simulating the keypress "x". At 3:00 : My game uses DirectX12, but from what I can tell, does not use Directinput. DLLs I found in cheatengine containing "input" are: "inputhost.dll" "TextinputFramework.dll" "xinput9_1_0.dll" "XInput1_4.dll" I simply have no clue, where to start / go from here. any advice is appreciated & thx in advance ! (also my program is written in python and I then need to find out dll injection works there)
@casualgamer1791
@casualgamer1791 3 жыл бұрын
you probably have to hook some XInput methods. Have not done that myself yet but ofc the info is out there. Doing that with python does add an extra layer of difficulty tho.. you might want to port to a different language
@happyoncrack1786
@happyoncrack1786 3 жыл бұрын
hey this work for the new black ops cold war??
@kubi2834
@kubi2834 3 жыл бұрын
hi man, how can I contact u? mail/discord
@user-vg9pf2bw7r
@user-vg9pf2bw7r 3 жыл бұрын
Build error in VS2019!
@bilibiliyxu215
@bilibiliyxu215 3 жыл бұрын
What do you put for hmodule? Is it even initialized?
@casualgamer1791
@casualgamer1791 3 жыл бұрын
case DLL_PROCESS_ATTACH: myhModule = hModule;
@bilibiliyxu215
@bilibiliyxu215 3 жыл бұрын
@@casualgamer1791 I see, but where does DLLMain gets called?
@casualgamer1791
@casualgamer1791 3 жыл бұрын
"'The system also calls the entry-point function for a DLL when it is loaded or unloaded using the LoadLibrary and FreeLibrary functions" ie inject the dll into your target and the function will get called imediately
@bilibiliyxu215
@bilibiliyxu215 3 жыл бұрын
@@casualgamer1791 I must have been incredibly dumb to miss that video in the link. Much appreciate the explanation.
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Np those were some valid questions
@hieupc1307
@hieupc1307 2 жыл бұрын
what if the game dont have any Input at all?
@casualgamer1791
@casualgamer1791 2 жыл бұрын
What? I can not imagine a game without any input ^^
@arifsharma6777
@arifsharma6777 3 жыл бұрын
How can I do this in pubg lite
@hipartvn
@hipartvn 3 жыл бұрын
i want to send press key? source demo please
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Check out the guided hacking link in the description
@hieupc1307
@hieupc1307 2 жыл бұрын
bạn ơi cho mình hỏi với
@croser81
@croser81 2 жыл бұрын
@@casualgamer1791 Any alternatives that don't cost 20 bucks?
@MiseryKira
@MiseryKira 3 жыл бұрын
0:43 song name?
@casualgamer1791
@casualgamer1791 3 жыл бұрын
robot barbecue in lab 5
@supernov4678
@supernov4678 3 жыл бұрын
where are you bro I miss you
@casualgamer1791
@casualgamer1791 3 жыл бұрын
No time atm :( new content coming asap
@hipartvn
@hipartvn 3 жыл бұрын
please link facebook or twiter of you? i want press key
@nark4837
@nark4837 3 жыл бұрын
UE4 next, please? :D
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Unreal Engine 4? That is a big topic. Be more specific pls
@nark4837
@nark4837 3 жыл бұрын
@@casualgamer1791 Hacking UE4 games. Function calling/hooking using process event and stuff like that.
@shreeshind8388
@shreeshind8388 3 жыл бұрын
Can u make for 3d game bot like automatic shoot???
@qwdjnkqwdqwnj32
@qwdjnkqwdqwnj32 3 жыл бұрын
Hello, I have question I cant find any video for a external cheat client with external menu for minecraft. Do you think you can do a Video or a video series how to make a external minecraft client(for lunar client to thats an pvp client) a client like this kzbin.info/www/bejne/hJOxdnehhLBnrq8
@izzoberrylibo3060
@izzoberrylibo3060 3 жыл бұрын
Lovely 😍💋 💝💖❤️
@garggank9083
@garggank9083 3 жыл бұрын
Are you an international hacker?
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Not sure what qualifies as international, I am not from the US.
@gurmeetmaan9109
@gurmeetmaan9109 3 жыл бұрын
Bro please make video on how to make pubg mobile esp plz plz plz ....
@irizkyw
@irizkyw Жыл бұрын
whats different dinput8.dll and DINPUT8.dll, i try use u script result not same.
Hooking DirectX9
8:53
CasualGamer
Рет қаралды 35 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 39 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 3,6 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 8 МЛН
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
How to hook functions (MinHook, x86 and x64)
13:20
CasualGamer
Рет қаралды 40 М.
vTables for Game Hacking & VMT Hooking
10:30
Guided Hacking
Рет қаралды 10 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 775 М.
Simulate Keyboard In Games | C++ Game Hacking
5:23
CasualGamer
Рет қаралды 17 М.
Making my game 5 times faster
8:19
1devm0
Рет қаралды 1,5 М.
SearchGPT - OpenAI's attempt to copy Perplexity
8:03
David Ondrej
Рет қаралды 455
External Overlay in C++ | Works For ANY Game
9:11
CasualGamer
Рет қаралды 55 М.
C++ Call Game Functions
12:44
TreckStrend
Рет қаралды 9 М.
C++ Internal Trampoline Hook Tutorial - OpenGL Hook
26:58
Guided Hacking
Рет қаралды 55 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 39 МЛН