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 › MultiPlayer Game Hacks & Cheats › Grand Theft Auto (GTA) Hack & Cheats › Grand Theft Auto 4 (GTA4) Hacks & Cheats › Skip Focus Check

Skip Focus Check

Posts 1–5 of 5 · Page 1 of 1
LO
loller0078
Skip Focus Check
Dear hackers,
I am investigating on how to keep the game running when the game is not in running in foreground.
I have detoured a few WINAPI functions like:
user32 GetForegroundWindow,
user32 GetFocus and
user32 GetActiveWindow to always return HWND eflc = FindWindowA(0, "EFLC");

example:

Code:
HWND WINAPI hGetForegroundWindow(void)
{
	HWND window = oGetForegroundWindow();
	Log->Write("hGetForegroundWindow %i", window);

	HWND eflc = FindWindowA(0, "EFLC");
	Log->Write("EFLC %i", eflc);
	
	return eflc;
}
Tho this does not have the desired result, the game is still frozen when not in foreground.

Would you have some suggestions?

Thanks in advance!
#1 · 11y ago
KO
Konker131
would this blog be helpful?

devblog.lcpdfr(dot)com/2013/12/multiplayer-mode-taking-a-look-at-disconnects-scripting-problems/
#2 · 11y ago
LO
loller0078
Thanks for that link. The information there confirms what i was thinking on where to look.
I managed to kind of reach my goal, but am far from pleased with the results.
I will share with you my results.

Note: All the following information has been tested with windowed mode. This can be achieved by having the -windowed argument in the gta4.exe launch path.

Code:
//The following hooks the windowmessages. Whenever things happen in a window, the window will send messages to this function.
WNDPROC	g_gameWndProc;

g_gameWndProc = ( WNDPROC )SetWindowLongA( GAME_HWND, GWL_WNDPROC, ( LONG )WindowProc );

//The following line will unhook the windowproc(), it should go into your unhook function.
SetWindowLongA( GAME_HWND, GWL_WNDPROC, ( LONG )g_gameWndProc );

//Now in our hooked function we check for the message WM_NCACTIVATE and block it.
//You will see I will pass WM_KILLFOCUS, but you could just have returned NULL for the same result.

LRESULT CALLBACK WindowProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam )
{
	if(Msg == WM_NCACTIVATE && wParam == 0)
	{
		Log->Write("WM_NCACTIVATE for hWnd %i wParam %i lParam %i", hWnd, wParam, lParam);
		
		return CallWindowProc( g_gameWndProc, hWnd, WM_KILLFOCUS, wParam, lParam );
	}

	return CallWindowProc( g_gameWndProc, hWnd, Msg, wParam, lParam );
}
After doing that, congratulations, after ALT+TAB the window stays active.
Tho there is one problem, the window holds the mouse focus and you cannot leave.
I did found the following workaround:

-If you want to keep the game running and want full interaction with another window (like your webbrowser) you should minimize GTA4 with the use of shortcut "WINDOWS KEY + KEY DOWN".
-Then it will minimize into your taskbar.
-Click GTA4 in your taskbar to show the window. The GTA4 window now has focus
-Now ALT+TAB and perform a mouseclick.

You now have GTA4 running while not interacting with the window.
#3 · 11y ago
LO
loller0078
I just happened to find a method that doesnt require hacking the game at all lol.
To keep GTA4 active (I tested this with EFLC in windowed mode) do the following.
-Get ingame
-Press WINDOWS KEY (now your startmenu opens and your mouse pointer is invisible)
-Quickly move your mouse down to your taskbar and click a running task while moving the mouse. (you might need to retry a few times)

I know this is not the most comfortable method but it doesnt involve any code changes.
#4 · 11y ago
stichbash
stichbash
cool shit here
#5 · 9y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • Skipping the Check in the Game LauncherBy Rizball in Piercing Blow Discussions
    1Last post 15y ago
  • Skip "Checking" on start up!By ftslynx in Piercing Blow Discussions
    23Last post 15y ago
  • HOW to skip pb start up checkBy dad4rr in Piercing Blow Discussions
    23Last post 15y ago
  • Skipping "Check" New Post With ImagesBy AFG4Lifee in Piercing Blow Tools
    20Last post 15y ago
  • Lol check out my crappy sigBy Severed in Art & Graphic Design
    1Last post 20y ago

Tags for this Thread

None