Nucleus handler tools › Docs › ProtoInput › StartFocusMessageLoop
ProtoInput.StartFocusMessageLoop
Open in the workbench (search, and try it in a handler)
ProtoInput.StartFocusMessageLoop(
instanceHandle: number,
milliseconds: number,
wm_activate: boolean,
wm_activateapp: boolean,
wm_ncactivate: boolean,
wm_setfocus: boolean,
wm_mouseactivate: boolean
): void
Starts posting focus messages to the game's main window in a loop, so the game believes it is focused. Parameters, in order: the instance handle, the interval in milliseconds, then true/false for WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_SETFOCUS and WM_MOUSEACTIVATE.
✎ AI-written, based on Nucleus ProtoInput.cs (StartFocusMessageLoop), ProtoInputLoader Inject.cpp, ProtoInputHooks PipeCommunication.cpp (StartFocusMessageLoop), ProtoInputHooks FocusMessageLoop.cpp (LoopThread). Not from the official docs. Is it wrong? Tell us
instanceHandle: The player's Proto Input instance, Player.ProtoInputInstanceHandle (or PlayerList[i].ProtoInputInstanceHandle).milliseconds: Pause between rounds of fake focus messages, in milliseconds.wm_activate: true posts WM_ACTIVATE (click-activate) to the game window each round.wm_activateapp: true posts WM_ACTIVATEAPP (activated) to the game window each round.wm_ncactivate: true posts WM_NCACTIVATE (active title bar) to the game window each round.wm_setfocus: true posts WM_SETFOCUS to the game window each round.wm_mouseactivate: true posts WM_MOUSEACTIVATE to the game window each round.
✎ Parameters: AI-written from the Nucleus source.
Is this right?
Tell us what's wrong