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
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).
Tell us what's wrongGive feedback
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).
Tell us what's wrongGive feedback