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 › Mouse-Hook for Rapidfire-Script?

Mouse-Hook for Rapidfire-Script?

Posts 1–6 of 6 · Page 1 of 1
WO
womb34
Mouse-Hook for Rapidfire-Script?
So I am trying to code a rapidfire-script using a mouse hook to detect when the left mouse button has been pressed. The only problem is, when I send a click to the game (to fire the weapon) it gets detected via the mouse hook and so it results in an infinite loop. I don't want to use an additional hotkey (like H) in the game to fire the weapon because that requires input from the user (settings H to fire). I once saw a AHK/AutoIT script which does this, but I'm not familiar with this language.

Code:
*lbutton::
Loop
{
  GetKeyState, state, lbutton, P
  if State = U
    break
  Send, {lbutton}
  Sleep, 0.1
}
return
I don't see what it does different. I guess my question comes down to: Is there a way to send a left mouse click to a process, without it getting detected by a Mousehook?

// Edit: Oh btw, I am using GetAsyncKeyState(0x01) == -32768 to check if the left mouse button is pressed or not.
#1 · edited 12y ago · 12y ago
rabir007
rabir007
Code:
if (MouseButtons == System.Windows.Forms.MouseButtons.Left)
            {
                //SendKey
            }
or use

Code:
etAsyncKeyState(0x01) < 0
#2 · 12y ago
WI
willy14
Use etAsyncKeyState(0x01) < 0
#3 · 12y ago
MarkHC
MarkHC
Quote Originally Posted by willy14 View Post
Use etAsyncKeyState(0x01) < 0
Why did you copy exactly what @rabir007said? Including the typo

Also, the correct syntax is
Code:
if(GetAsynKeyState(0x1) & Int16.MaxValue != 0){
     //Do Shit Here
}
#4 · 12y ago
WI
willy14
Quote Originally Posted by -InSaNe- View Post

Why did you copy exactly what @rabir007said? Including the typo

Also, the correct syntax is
Code:
if(GetAsynKeyState(0x1) & Int16.MaxValue != 0){
     //Do Shit Here
}

No I didn't... I was trying to help.. Just drop it then
#5 · 12y ago
SammyDoge1
SammyDoge1
Use the above in a timer, and you are settled for success
#6 · 12y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Alien Swarm rapidfire script for Dual PistolsBy Tigermisu in Hack Requests
    4Last post 16y ago
  • im need bypass client hook for combat arms plzBy puchas7 in Combat Arms Europe Hacks
    2Last post 17y ago
  • L96A1 mod ^^ for rapidfire !!!By wertoskiller in Combat Arms Europe Hacks
    10Last post 16y ago
  • looking for these scripts, will give m60codes for it!By BillGates in Trade Accounts/Keys/Items
    3Last post 19y ago
  • im need bypass client hook for combat arms plzBy puchas7 in Combat Arms Hacks & Cheats
    11Last post 17y ago

Tags for this Thread

None