Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C# Programming › Background/Foreground Keyboard Open Source

PostBackground/Foreground Keyboard Open Source

Posts 1–4 of 4 · Page 1 of 1
Dr Donkey Kong
Dr Donkey Kong
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/Keyboard
#1 · 12y ago
PO
poulpo13
do 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).
#2 · edited 12y ago · 12y ago
Dr Donkey Kong
Dr Donkey Kong
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.
#3 · 12y ago
sorpz
sorpz
This is something very useful. Since I'm a "programmer" I tried alot of solutions to get key presses, etc. to work. I also got something to work but this looks pretty cool. I'll have a closer look at the source. Good job.

Keep going
#4 · 12y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Macro Scripter - Record your Mouse and Keyboard in Realtime! [Open Source Soon]By consca in Visual Basic Programming
    4Last post 14y ago
  • Pokemon Cyrus (Open Source Server and Client) But Need Encryption Lock HelpBy valadon in General Hacking
    0Last post 18y ago
  • Combat Arms Utilities Open Source ProjectBy User1 in Combat Arms Hacks & Cheats
    28Last post 16y ago
  • Open Source Release. Semi-Useless Timer Source Code!By User1 in Visual Basic Programming
    6Last post 16y ago

Tags for this Thread

#button#key#keyboard#keyboardhook#mouse#mouse and key