</head> <body> <h1>#InputLevel <span class="ver">[v1.1.06+]</span></h1> <p>Controls which artificial keyboard and mouse events are ignored by hotkeys and hotstrings.</p> <pre class="Syntax"><span class="func">#InputLevel</span> <span class="optional">Level</span></pre> <h2 id="Parameters">Parâmetros</h2> <dl> <dt>Level</dt> <dd><p>An integer between 0 and 100. If omitted, it defaults to 0.</p></dd> </dl> <h2 id="General_Remarks">Observações Gerais</h2> <p>For an explanation of how SendLevel and #InputLevel are used, see <a href="SendLevel.htm">SendLevel</a>.</p> <p>This directive is positional: it affects all hotkeys and hotstrings between it and the next #InputLevel directive. If not specified by an #InputLevel directive, hotkeys and hotstrings default to level 0.</p> <p><span class="ver">[v1.1.23+]:</span> A hotkey's input level can also be set using the Hotkey command. Por exemplo: <code>Hotkey, #z, my_hotkey_sub, <strong>I1</strong></code></p> <p>The input level of a hotkey or non-auto-replace hotstring is also used as the default <a href="SendLevel.htm">send level</a> for any keystrokes or button clicks generated by that hotkey or hotstring. Since a keyboard or mouse <a href="../misc/Remap.htm">remapping</a> is actually a pair of hotkeys, this allows #InputLevel to be used to allow remappings to trigger other hotkeys.</p> <p>AutoHotkey versions older than <span class="ver">[v1.1.06]</span> behave as though #InputLevel 0 and SendLevel 0 are in effect.</p> <p>Like other directives, #InputLevel cannot be executed conditionally.</p> <h2 id="Related">Tópicos relacionados</h2> <p><a href="SendLevel.htm">SendLevel</a>, <a href="../Hotkeys.htm">Hotkeys</a>, <a href="../Hotstrings.htm">Hotstrings</a></p> <h2 id="Examples">Exemplos</h2> <div class="ex" id="ExBasic"> <p><a class="ex_number" href="#ExBasic"></a> Causes the first hotkey <code>*Numpad0::</code> to trigger the second hotkey <code>~LButton::</code>. This would be not the case if the #InputLevel directives are omitted or commented out.</p> <pre> #InputLevel 1 <em>; Use SendEvent so that the script's own hotkeys can be triggered.</em> *Numpad0::SendEvent {Blind}{Click Down} *Numpad0 up::SendEvent {Blind}{Click Up} #InputLevel 0 <em>; This hotkey can be triggered by both Numpad0 and LButton:</em> ~LButton::MsgBox Clicked </pre> </div> </body> </html>