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++/C Programming › RapidFire Script In C++

RapidFire Script In C++

Posts 1–15 of 17 · Page 1 of 2
FU
funkake
RapidFire Script In C++
I am able to make them
Code:
#include <iostream>
#include <Windows.h>
#include <time.h>

using namespace std;
int main()
{
	while(true)
	{
		if(GetAsyncKeyState(VK_LBUTTON)&0x8000)
		{
			mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 10, 0, 0);
			Sleep(60);
			mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
			Sleep(20);
			
		}
	}
}
Is there any way I can get a separate left click function only affected by the mouse, because it seems these two cancel each other out >> mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); and if(GetAsyncKeyState(VK_LBUTTON)&0x8000); >>

Btw, I cant use the mouse driver to change the leftclickbutton to something else and i need the script to output left clicks.. :P

i know this can be easily made with AHK and other macro programs, but i want to include this into a larger project..

I am sorry for possible typos, Norwegian speaking man here :P

Thanks in advance
#1 · 14y ago
GhostMode1
GhostMode1
Chang the code for lb=mm
dude change the mouse left to middle not left or right it will fail the code in building try "
Code:
c#=(vk_mmBUTTON) if LB=True then change RB= False{MM}
"

---------- Post added at 09:40 PM ---------- Previous post was at 09:39 PM ----------

basecally change the lb and rb to the mm
#2 · 14y ago
FU
funkake
Quote Originally Posted by GhostMode1 View Post
dude change the mouse left to middle not left or right it will fail the code in building try "
Code:
c#=(vk_mmBUTTON) if LB=True then change RB= False{MM}
"

---------- Post added at 09:40 PM ---------- Previous post was at 09:39 PM ----------

basecally change the lb and rb to the mm
I am a bit confused, could you elaborate a bit?
#3 · 14y ago
KI
kibbles18
Try other windows api functions such as PostMessage and send it to the target application for mouse events.
#4 · 14y ago
[P
[P]tc
Use vb for this
#5 · 14y ago
FU
funkake
Quote Originally Posted by [P]tc View Post
Use vb for this
Can't, because I <3 C++
#6 · 14y ago
Null::Void
Null::Void
1) thats about the stupidest thing i have ever heard "Use VB for this"
2) What exactly are you trying to accomplish (Your code is valid)
3) Why do you want to trigger your event with a mouseclick when the mouse_event is the same button
#7 · 14y ago
Hell_Demon
Hell_Demon
Use a low level mouse hook to detect when the mouse button is pressed/released
#8 · 14y ago
FU
funkake
Quote Originally Posted by Hell_Demon View Post
Use a low level mouse hook to detect when the mouse button is pressed/released
Yeah that sounds good, But that would be written in C i guess.. I'll look into it, thanks
#9 · 14y ago
VA
Variant
Quote Originally Posted by funkake View Post
I am a bit confused, could you elaborate a bit?
What he means is that if the "left-button" triggers the bot and the bot then simulates "left-button" clicks the bot will after been activated once keep triggering itself in a infinite loop.
#10 · 14y ago
Hell_Demon
Hell_Demon
LowLevelMouseProc callback function

test flags for LLMHF_INJECTED to see if it was injected or not

If you get stuck on it let me know and I'll code up an example for you
#11 · 14y ago
FU
funkake
Quote Originally Posted by Hell_Demon View Post
LowLevelMouseProc callback function

test flags for LLMHF_INJECTED to see if it was injected or not

If you get stuck on it let me know and I'll code up an example for you
Well, I have to admit I am stuck

I guess i need to make a Mousehook.dll

with this

Code:
LRESULT CALLBACK LowLevelMouseProc(
  __in  int nCode,
  __in  WPARAM wParam,
  __in  LPARAM lParam
);
but I haven't used these API functions before, so I am rubbing my head against the wall here






And diablo 3 came out Yey
#12 · 14y ago
Hell_Demon
Hell_Demon
Code:
 HHOOK hMouseHook;

somewhere in your initialization code:
hMouseHook = SetWindowsHookEx( WH_MOUSE_LL, &MouseProc, 0, GetCurrentThreadId());


LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lParam) 
{  
    if (nCode < 0)  // do not process the message 
        return CallNextHookEx(hMouseHook, nCode, wParam, lParam); 
    
    MSLLHOOKSTRUCT fuckingPenguins = (MSLLHOOKSTRUCT)lParam;
    if(!(fuckingPenguins.flags & LLMHF_INJECTED)) // not injected
    {
        if(wParam ==  WM_LBUTTONDOWN)
        {
            bRapidFire = true;
        }
        else if(wParam ==  WM_LBUTTONUP)
        {
            bRapidFire = false;
        }
    }
    
    return CallNextHookEx(hMouseHook, nCode, wParam, lParam); 
}

written in the browser so no idea if it works
#13 · 14y ago
Hassan
Hassan
@funkake: So, is it solved ?
#14 · 14y ago
FU
funkake
It is, you can lock the thread.
#15 · 14y ago
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

  • CoD4: Rapidfire scriptBy Ipwnyou!! in Call of Duty 4 - Modern Warfare (MW) Hacks
    40Last post 13y ago
  • MW2 Rapidfire script (AHK)By Cato38 in Call of Duty 6 - Modern Warfare 2 (MW2) Hacks
    2Last post 13y ago
  • Rapidfire script - Fastest!!!!!!!By rahza786 in Call of Duty 8 - Modern Warfare 3 (MW3) Hacks & Cheats
    27Last post 14y ago
  • Alien Swarm rapidfire script for Dual PistolsBy Tigermisu in Hack Requests
    4Last post 16y ago
  • Habbohotel ScriptsBy h0ang in General Game Hacking
    8Last post 19y ago

Tags for this Thread

None