Nucleus handler tools › Docs › ProtoInput › EnableMessageBlock

ProtoInput.EnableMessageBlock

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

ProtoInput.EnableMessageBlock(
  instanceHandle: number,
  messageID: number
): void

Blocks a window message in the game instance: the game reads it as an empty message (WM_NULL). Parameters: the instance handle (Player.ProtoInputInstanceHandle) and the message number. Only acts while the MessageFilterHookID hook is installed, and the number goes through Proto Input's own message table, so an unlisted number can block a different message.

✎ AI-written, based on Nucleus ProtoInput.cs (EnableMessageBlock), ProtoInputLoader InstallMessageFilter.cpp, ProtoInputHooks PipeCommunication.cpp (SetupMessageBlock, MessageList::GetBlocked), ProtoInputHooks MessageFilterHook.cpp (FilterMessage). Not from the official docs. Is it wrong? Tell us

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop