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 › need help with c++ timer

need help with c++ timer

Posts 1–3 of 3 · Page 1 of 1
desa2k2
desa2k2
need help with c++ timer
I need help making a working timer in c++ for stamina, and all the things that need to be freezed, here is what I got, see if you can help me out.

Code:
void memory()
{
HWND hWnd = FindWindow(0, "WarRock");
GetWindowThreadProcessId(hWnd, &proc_id);
hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id);
}

void CMyTrainer1Dlg::OnTimer(UINT nIDEvent) 
{
if (stamina == true)
{
	long staddy = 0x12F06C0;
	short stoffset = 288;
	float stvalue = 1120403456;
	long stmaddy;
	long stsaddy;
	memory();
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD) staddy, &stmaddy, sizeof(stmaddy), NULL);
	stsaddy = stmaddy + stoffset;
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD) stsaddy, &stvalue, sizeof(stvalue), NULL);
}	
	CDialog::OnTimer(nIDEvent);
}

void CMyTrainer1Dlg::OnStamOn() 
{
stamina = true;
}

void CMyTrainer1Dlg::OnStamOff() 
{
stamina = false;
}
#1 · edited 18y ago · 18y ago
VE
vescovo
paste the whole code
#2 · 18y ago
desa2k2
desa2k2
Quote Originally Posted by vescovo View Post
paste the whole code
i added everything thats involved with the stamina timer, besides "bool stamina"
#3 · 18y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • need help with moddingBy BayBee Alyn in Combat Arms Help
    0Last post 15y ago
  • need help with modBy .:MUS1CFR34K:. in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    4Last post 15y ago
  • Need help with numpad while recording macro !By JonathanTBM in Vindictus Help
    2Last post 15y ago
  • Need help with making binds !By JonathanTBM in Vindictus Help
    4Last post 15y ago
  • Need Help With A.V.A ErrorBy ch1025 in Alliance of Valiant Arms (AVA) Help
    7Last post 15y ago

Tags for this Thread

#timer