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 › Programming Tutorials › Programming Tutorial Requests › Need help with a simple macro

Need help with a simple macro

Posts 1–2 of 2 · Page 1 of 1
marko4452
marko4452
Need help with a simple macro
Can anybody tell me how can i make left mouse button trigger another keyboard key, and while the left mouse button is pressed the key on the keyboard is kept pressed too. Any help is much apperciated
#1 · 14y ago
dkofek
dkofek
just a thought.. (not sure how the model is being used.. since I program Java and never tried mouse/keyboard clicks)
Code:
while(m.MousePressed()){                  //while button is down do
       k.keyPress(KeyEvent.VK_Q);        //press Q (for example)
       wait(200);}                              //delay 200ms (change it as you wish)

if(m.MouseClicked()){                        //if mouse was clicked (hold-release)
       k.keyPress(KeyEvent.VK_Q);}      //press Q
hope I helped!
#2 · 14y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • Need help with numpad while recording macro !By JonathanTBM in Vindictus Help
    2Last post 15y ago
  • Please i need help with MACRO DARKSTORMXBy fear9man in Alliance of Valiant Arms (AVA) Help
    0Last post 14y ago
  • New modder Need help with simple text input NOOB!!By rotceh_dnih in Call of Duty Black Ops GSC Modding Help & Discussion
    3Last post 15y ago
  • Need help with mouse macroBy @Hunter in Alliance of Valiant Arms (AVA) Help
    0Last post 14y ago
  • Need help with macroBy epicowns in Vindictus Help
    3Last post 15y ago

Tags for this Thread

None