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 › MultiPlayer Game Hacks & Cheats › Battlefield Hacks & Cheats › Battlefield 3 (BF3) Hacks & Cheats › [C++]Need Help With BF3 Auto pressing "Q"

[C++]Need Help With BF3 Auto pressing "Q"

Posts 1–12 of 12 · Page 1 of 1
ER
ERGaergaergaergaergearg
[C++]Need Help With BF3 Auto pressing "Q"
Hey everyone, I'm extremely new to c++.
I need help with a very simple auto press Q program to spot people automaticlly.

The code:

Code:
#include <iostream>
#include <Windows.h>
#include "conio.h"


using namespace std;



int main(){
	HWND windowHandle = FindWindow(0, ("Battlefield 3™"));
		INPUT *key;
	if(windowHandle == NULL){
		cout << "Didn't Found The Game..." << endl;
		_getch();
	}
	else{
		cout << "Autopressing W";
	SetForegroundWindow(windowHandle); 
	Sleep(1000); 

	key = new INPUT;
	key->type = INPUT_KEYBOARD; 
	key->ki.time = 0; 
	key->ki.wScan = 0; 
	key->ki.dwExtraInfo = 0;
	while(true){
		if(GetAsyncKeyState(VK_F5)){
		exit(0);
		}	
			key->ki.wVk = 0x51; 
			key->ki.dwFlags = 0; 
			SendInput(1,key,sizeof(INPUT));
			Sleep(1000);
	}


_getch();
	}
}
The prob is, when i run the program, the camera is just rotating right all the time...Does this have something about the game's anti-hack or something?
#1 · 13y ago
Kuba50956
Kuba50956
I'm not any pro at it, not even nooby, but I'm sure that's not PunkBuster's fault.
#2 · 13y ago
ER
ERGaergaergaergaergearg
Alright, Thank you. Bcuz it's pretty clear in the code, that it is pressing button Q and no rotating mouse xD
#3 · 13y ago
AraaasH
AraaasH
I've tried millions of times to get this to work.
I managed to loop a key pressing until i press another key, but it's useless since I have to restart the script every time I stop the loop.
#4 · 13y ago
ER
ERGaergaergaergaergearg
Quote Originally Posted by AraaasH View Post
I've tried millions of times to get this to work.
I managed to loop a key pressing until i press another key, but it's useless since I have to restart the script every time I stop the loop.
Hmm, Alright, So you're saying that this wont work?
#5 · 13y ago
AraaasH
AraaasH
Quote Originally Posted by gresan6 View Post
Hmm, Alright, So you're saying that this wont work?
Not in my knowledge, maybe there's a way to get around it. Don't give up just like I did
#6 · 13y ago
ER
ERGaergaergaergaergearg
Quote Originally Posted by AraaasH View Post
Not in my knowledge, maybe there's a way to get around it. Don't give up just like I did
I'll try my best, even thou im a newbie xD
#7 · 13y ago
selimkose
selimkose
i got a program but its not aprroved its a script too
#8 · 13y ago
ER
ERGaergaergaergaergearg
Quote Originally Posted by selimkose View Post
i got a program but its not aprroved its a script too
Hmm, Could you please send it too me and i'll check it out?
#9 · 13y ago
lhikary
lhikary
"send it to me" he can send you a keylogger, you that stupid?
#10 · 13y ago
ER
ERGaergaergaergaergearg
Quote Originally Posted by lhikary View Post
"send it to me" he can send you a keylogger, you that stupid?
Yeah, I am that stupid, Prob? o.O
#11 · 13y ago
dimucchu2
dimucchu2
Lol, before touching the file you could check it. its not stupid to accept unknown files. Just be awared of scanning/checking code before opening.


About the topic:
if you would transfer your code to C# (.NET) i could help you out. I am highly skilled on C# (.NET). with C# .NET/VB.NET you could include DirectX elements to do ESP and Radar for example.
#12 · 13y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

  • Need help with exe auto injector programs on IW5M ???By jeffand123 in Call of Duty Modern Warfare 3 Private Server Hacks
    4Last post 13y ago
  • Need Help with Auto Bhop!By Auncel in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    1Last post 13y ago
  • need help with moddingBy BayBee Alyn in Combat Arms Help
    0Last post 15y ago
  • need help with modBy .:MUS1CFR34K:. in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    4Last post 15y ago
  • Need help with numpad while recording macro !By JonathanTBM in Vindictus Help
    2Last post 15y ago

Tags for this Thread

#battlefield 3#c++#help