MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ScriptBlockInput

Method ScriptBlockInput

source/script.cpp:12540–12548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12538
12539
12540ResultType Line::ScriptBlockInput(bool aEnable)
12541// Always returns OK for caller convenience.
12542{
12543 // Always turn input ON/OFF even if g_BlockInput says its already in the right state. This is because
12544 // BlockInput can be externally and undetectably disabled, e.g. if the user presses Ctrl-Alt-Del:
12545 BlockInput(aEnable ? TRUE : FALSE);
12546 g_BlockInput = aEnable;
12547 return OK; // By design, it never returns FAIL.
12548}
12549
12550
12551

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected