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 › Get Mouse Click

Get Mouse Click

Posts 1–5 of 5 · Page 1 of 1
XO
Xocitus
Get Mouse Click
I want to do this:

If right mouse button is clicked do:
cout << "something...."
#1 · 19y ago
cjg333
cjg333
i know in vb6 its (vbkeyRbutton),but i dont know c++,try it or search google
#2 · 19y ago
FluffyStuff
FluffyStuff
I use DirectX DirectInput.dll for that (probably not the best way but who cares). You need the whole DirectX SDK for that though.
#3 · 19y ago
BO
boom..
while ( 1 == 1 )
{

if (GetAsyncKeyState(0x02))
{
cout<< "Right mouse button!!!";

}

}
#4 · 19y ago
FluffyStuff
FluffyStuff
Quote Originally Posted by boom View Post
while ( 1 == 1 )
{

if (GetAsyncKeyState(0x02))
{
cout<< "Right mouse button!!!";

}

}
Do you always use that while loop?
While (true) { ... } is better.
#5 · 19y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • Storing Mouse ClicksBy gwentravolta in Visual Basic Programming
    9Last post 16y ago
  • Method to Stimulate Mouse ClicksBy zhaoyun333 in C++/C Programming
    0Last post 16y ago
  • [HELP]Fast Mouse Click[Solved]By <(-_-)> in Visual Basic Programming
    5Last post 16y ago
  • [HELP] Fast Mouse Click Code[Solved]By <(-_-)> in Visual Basic Programming
    6Last post 16y ago
  • [HELP] Mouse ClicksBy Golden. in Visual Basic Programming
    1Last post 16y ago

Tags for this Thread

None