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 › Hot Keys And Values

Hot Keys And Values

Posts 1–5 of 5 · Page 1 of 1
valakas
valakas
Hot Keys And Values
Very much appreciated in advanced for any help,

I would like to make a C++ .dll function for below condition:

example there is an address 00800000 which default value is 0x00

if I press F3 hotkey (1st time) - it will change the default value into 0x01

if I press F3 hotkey (2nd time) - it will change the default value into 0x02

if I press F3 hotkey (3rd time) - it will change the default value into 0x03

if I press F3 hotkey (4th time) - it will change back the default value into its original 0x00

Thank you~
#1 · 14y ago
Parandroid
Parandroid
Code:
int count = 0;
if (GetAsyncKeyState(VK_F3))
{	
	switch(count)
	{
		case 0: *(int*)0x00800000 = 0x00; count = 1;break;
		case 1: *(int*)0x00800000 = 0x01; count = 2;break;
		case 2: *(int*)0x00800000 = 0x02; count = 3;break;
		case 3: *(int*)0x00800000 = 0x03; count = 0;break;
	}
}
I have NO idea if this is the best way.
#2 · edited 14y ago · 14y ago
MarkHC
MarkHC
Code:
int count = 0;
while(true){
    if(GetAsyncKeyState(VK_F3)){
       *(int*)0x00800000 = count;
       count++;
    }
    if(count>3) count = 0;
}
Not sure if it works...
#3 · 14y ago
valakas
valakas
Thanks @Parandroid, your code is working.
#4 · 14y ago
Hassan
Hassan
Marked solved. No more posting unless required by the original poster.
#5 · 14y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • Guns And ValueBy master987 in WarRock - International Hacks
    5Last post 19y ago
  • addresses and value!!By 123456789987654321 in WarRock - International Hacks
    7Last post 19y ago
  • [TuT] How to make PW and value box for Guns/Superjump/SkyStormer(VB6)By jokuvaan11 in WarRock - International Hacks
    14Last post 19y ago
  • [request] accuaracy and ammo address and values plzBy khaid in WarRock - International Hacks
    1Last post 19y ago
  • Hot KeysBy nub_g0t_high in Visual Basic Programming
    3Last post 18y ago

Tags for this Thread

None