Background/Foreground Keyboard Open Source
I've been writing hacks/bots for games for a long time...
One of the primary needs is to do key-input which then normally leads to the desire to do background key press/mouse click..
The library below is one I've been working on for a while. I need to refactor it pretty badly, but before doing so I just wanted to drop it out onto the net and see if it would be useful to anyone.
This uses PostMessage/SendMessage to do it's background key press/mouse click. I have lately been thinking it might be smarter of me to do a hook and inject the dll into the process in question.
Anyways, i'll be working on this library more to make it easier to use. Let me know if you have a feature request.
Written in C# using DllImports when needed
Source Code:
https://******.com/EasyAsABC123/Keyboarddo it work with any directx program (eg EDEN ETERNAL) ? because, i've tested the postmessage (my code) and it dont work, i was used the %#!? of SendInput with SCANCODE flag... who is a problem if we open 2 times the game (sandboxie).
Mine has always worked fine for DirectX games, the lParam and wParam are important...But testing it would be the only way to guarantee it works.
Also my currently plan is to make a DLL that hooks all keyboard monitoring functions, then you inject it into any APP/GAME.
Then it has a backdoor so you can send "fake/spoofed" key input to that APP/GAME without interfering with any other application. It should even if written properly not interfere with typing inside the game as a normal human.