Nucleus handler tools โ€บ Docs โ€บ Game โ€บ HookFocus

Game.HookFocus

Open in the workbench (search, and try it in a handler)

Game.HookFocus: boolean

Enable or disable hooks to trick the game into thinking it has focus | default: false.

Category: Focus

AI-writtenAI-written. Based on: Nucleus GenericGameHandler.cs (opens in a new tab) (post-launch hooks when gen.HookFocus); DllsInjector.cs (opens in a new tab) (Hook GetForegroundWindow); Verified Hub handlers, counted 2026-11-17 (opens in a new tab); Hub game engines (opens in a new tab).

In practice

Nucleus injects its hooks into each instance after launch so the game is told it is the foreground window (GetForegroundWindow and the like), even when it isn't. Used for games that stop or mute when they lose focus, especially common in Source games, sometimes with Game.FakeFocus; Unity games' handlers rarely use it.

Is "In practice" right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).

By engine: rarer in Unity games.

Game.HookFocus = true;
Is the doc right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop