Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 04:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



(C#/C++)Global mouse hook (+dinput)

Discussion on (C#/C++)Global mouse hook (+dinput) within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
Crack-wtf's Avatar
 
elite*gold: 256
Join Date: Feb 2012
Posts: 1,370
Received Thanks: 2,917
(C#/C++)Global mouse hook (+dinput)

Hey Leute,

für ein Spiel das über Twitch gespielt wird, brauche ich die möglichkeit meine Maus Ingame zu blocken/invertieren etc.

Jetzt reicht der user32 input hook nicht aus, da ingame Dinput8 genutzt wird.

Nun würde ich euch gerne fragen, wie ich da am klügsten rangehe.
(Bitte beachtet, dass das eigentliche Programm in C# geschrieben ist.)

Meine Idee war folgendes.
Ich schreibe in C++ eine Dll die Dinput8/Dinput9 hookt und über NamedPipes Befehle annimmt.
z.B. "BlockMouse"

Die Dll Injecte ich in jeden Prozess, der die Dinput8.dll/Dinput9.dll geladen hat.
Und im Hauptprozess sende ich eben über den Pipe die befehle.


Kennt ihr eine bessere Lösung?
Crack-wtf is offline  
Old 10/15/2015, 11:55   #2
 
elite*gold: 0
Join Date: Mar 2010
Posts: 360
Received Thanks: 132
Vorweg: Ich kenne Dinput8 nicht

Wenn dinput8 nicht zu komplex ist und die integrität der Datei nicht geprüft wird, könntest du auch eine eigene dinput8 schreiben und diese in den Spieleordner legen.
Das wird zwar meist für directx genutzt, sollte hier aber auch funktionieren.

Als Chart würde das ganze so aussehen:
Spiel <-> dinput8.dll(ProxyDLL) <-> dinput8.dll(SystemDLL)

Der Vorteil daran ist, dass du keine Pipe benötigst.
Der Aufwand ist aber offensichtlich höher.
Daifoku is offline  
Old 10/15/2015, 12:20   #3
 
Crack-wtf's Avatar
 
elite*gold: 256
Join Date: Feb 2012
Posts: 1,370
Received Thanks: 2,917
Doch ich würde dann immernoch Pipes brauchen, weil ich ja festlegen will wann die Maus/Keyboard geblockt werden soll oder nicht.

Ich denke es geht einfach nicht anders.
Ich muss einen Detour in eine Dll packen und es injecten.
Crack-wtf is offline  
Reply


Similar Threads Similar Threads
<06.07.11> Chico™ Big Hook, Invisible, Big Esp , Chams , cqcProne /MOUSE SUPPORT!!!
07/21/2011 - WarRock Hacks, Bots, Cheats & Exploits - 131 Replies
Achtung paar Funktionen worken nicht , vergessen rauszunehmen Invisible bug Fixxed, jetzt ist es Perfekt! BITTE BETRIEBSSYSTEM SCHREIBEN OB GEHT ODER NICHT Windows 7 64 Bit = Work! Windows 7 32 Bit = Vista 64 Bit = Vista 32 Bit = Xp 64 Bit =
Mouse & Key blocks in Dekaron Global
03/11/2010 - Dekaron - 1 Replies
Hi i tried to make a simple bot for Dekaron Global to bot with hacks but when i try to send mouseclicks, mousemovement or keys in c# or autoit to the Dekaron window something is blocking it. I have run dekaron with xigncode bypass and hacks but something is still blocking it :( has somebody a way to bypass this block or another way to simulate this activities? thanks for help ^^
keyboard/mouse hook
02/06/2008 - Cabal Online - 0 Replies
blockt gameguard keyboard bzw. mousehooks ?



All times are GMT +2. The time now is 04:16.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.