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 › Send keys to Battlefield 3

Send keys to Battlefield 3

Posts 1–6 of 6 · Page 1 of 1
ST
stevemk14ebr
Send keys to Battlefield 3
This is my first post on this forum ever, (just registered) after not receiving knowledgeable information/help form users on another forum. The task is simple send virtual keys to Battlefield 3, it has low level hook protection so that is out, tried . and i have limited to zero knowledge on how to do this any other way, any ideas or code snippets would be welcomed

P.S i can read c++/c# and understand what's going on but i havn't learned to write it yet, i am however a very advanced vb.net coder, psuedo code or psuedo c++/vb.net,c# code would be excelent
#1 · edited 13y ago · 13y ago
ST
stevemk14ebr
bump, please i really need help with this
#2 · 13y ago
rabir007
rabir007
button1_cluck(...)
{
Sendkeys.Send("Sended String");
}
#3 · 13y ago
ST
stevemk14ebr
senkeys doesn't work, if windows api's aren't working then senkeys sure as hell isn't going to work (that was the first thing i tried actually haha)
#4 · 13y ago
MarkHC
MarkHC
That's because you can't use SendKeys to send keys to DirectX Application since it uses DirectInput (I think that's the name). After a little search on google I've found this... hope it helps you:

The code below will send two keypresses "Q" and "1".
PS: The DIK_ keycodes are from the dinput.h DirectX header file.
Code:
   INPUT inp[2];
   memset(inp,0,sizeof(INPUT));
   inp[0].type = INPUT_KEYBOARD;
   inp[0].ki.dwFlags = KEYEVENTF_SCANCODE;
   inp[1] = inp[0];
   inp[1].ki.dwFlags |= KEYEVENTF_KEYUP;      // keyup event

   inp[0].ki.wScan = inp[1].ki.wScan = DIK_Q;      // inp[0] = keydown, inp[1] = keyup    
   SendInput(2, inp, sizeof(INPUT));
   inp[0].ki.wScan = inp[1].ki.wScan = DIK_1;
   SendInput(2, inp, sizeof(INPUT));
@stevemk14ebr
#5 · edited 13y ago · 13y ago
matypatty
matypatty
pretty sure you need to hook the action buffer to send input to battlefield games.
#6 · 13y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Help with sending keysBy Crash in C++/C Programming
    4Last post 16y ago
  • Send Key/Mouse movements to crossfire?By HackManster in CrossFire Hacks & Cheats
    16Last post 16y ago
  • How can i send Keys to CrossFireBy user44 in CrossFire Hack Coding / Programming / Source Code
    1Last post 15y ago
  • Sending Keys into Vindictus using autoit(While minimized)By azrith001 in Vindictus Help
    2Last post 15y ago
  • Send Key/Mouse to crossfire?By HackManster in Visual Basic Programming
    20Last post 16y ago

Tags for this Thread

#battlefield#hack#hook#keys