</head> <body> <h1>#MaxHotkeysPerInterval</h1> <p>Along with <a href="_HotkeyInterval.htm">#HotkeyInterval</a>, specifies the rate of <a href="../Hotkeys.htm">hotkey</a> activations beyond which a warning dialog will be displayed.</p> <pre class="Syntax"><span class="func">#MaxHotkeysPerInterval</span> Value</pre> <h2 id="Parameters">Parameters</h2> <dl> <dt>Value</dt> <dd><p>The maximum number of hotkeys that can be pressed in the interval specified by <a href="_HotkeyInterval.htm">#HotkeyInterval</a> without triggering a warning dialog.</p></dd> </dl> <h2 id="Remarks">Remarks</h2> <p>Care should be taken not to make the above too lenient because if you ever inadvertently introduce an infinite loop of keystrokes (via a <a href="Send.htm">Send</a> command that accidentally triggers other hotkeys), your computer could become unresponsive due to the rapid flood of keyboard events.</p> <p>As an oversimplified example, the hotkey <code>^c::Send ^c</code> would produce an infinite loop of keystrokes. To avoid this, add the <a href="../Hotkeys.htm#prefixdollar">$ prefix</a> to the hotkey definition (e.g. <code>$^c::</code>) so that the hotkey cannot be triggered by the Send command.</p> <p>If this directive is unspecified in the script, it will behave as though set to 70.</p> <p>Like other directives, #MaxHotkeysPerInterval cannot be executed conditionally.</p> <h2 id="Related">Related</h2> <p><a href="_HotkeyInterval.htm">#HotkeyInterval</a></p> <h2 id="Examples">Examples</h2> <div class="ex" id="ExBasic"> <p><a class="ex_number" href="#ExBasic"></a> Allows to press a maximum of 200 instead of 70 hotkeys per interval.</p> <pre>#MaxHotkeysPerInterval 200</pre> </div> </body> </html>