Nucleus handler tools β€Ί Docs β€Ί ProtoInput β€Ί UpdateMainWindowHandle

ProtoInput.UpdateMainWindowHandle

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

ProtoInput.UpdateMainWindowHandle(
  instanceHandle: number,
  hwnd: number
): void
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (UpdateMainWindowHandle); ProtoInputLoader Inject.cpp (opens in a new tab); ProtoInputHooks PipeCommunication.cpp (opens in a new tab) (UpdateMainWindowHandle); HwndSelector.cpp (opens in a new tab) (UpdateMainHwnd, RemoteHwndEnabled).

Sets which window Proto Input treats as the game's main window (focus, cursor and input messages target it). Parameters: the instance handle and the window handle; 0 makes Proto Input pick the first visible top-level window of the game itself. After a non-zero handle, Proto Input stops searching for the main window on its own.

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