Difference between revisions of "Lua:setGlobalDelayBetweenHotkeyActivation"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "Category:Lua {{CodeBox|'''function''' setGlobalDelayBetweenHotkeyActivation(''delay'') ''':''' void}} Sets the minimum delay between activations of the same hotkey in mil...")
 
m (Syntax Highlighting.)
 
Line 21: Line 21:
  
 
===Examples===
 
===Examples===
<pre>
+
<syntaxhighlight lang="lua" line>
 
-- Require at least 500 milliseconds between activations of the same hotkey
 
-- Require at least 500 milliseconds between activations of the same hotkey
 
setGlobalDelayBetweenHotkeyActivation(500)
 
setGlobalDelayBetweenHotkeyActivation(500)
Line 27: Line 27:
 
-- Require at least 1000 milliseconds between activations of the same hotkey
 
-- Require at least 1000 milliseconds between activations of the same hotkey
 
setGlobalDelayBetweenHotkeyActivation(1000)
 
setGlobalDelayBetweenHotkeyActivation(1000)
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
 +
 +
{{KeyboardMouse}}

Latest revision as of 20:18, 25 June 2026

<> Lua API Reference

function setGlobalDelayBetweenHotkeyActivation(delay) : void

Sets the minimum delay between activations of the same hotkey in milliseconds.

This affects all hotkeys that do not define their own minimum delay.

Function Parameters[edit]

Parameter Type Description
delay Integer The minimum delay in milliseconds between activations of the same hotkey.

Returns[edit]

void — This function does not return any value.

Examples[edit]

1 -- Require at least 500 milliseconds between activations of the same hotkey
2 setGlobalDelayBetweenHotkeyActivation(500)
3 
4 -- Require at least 1000 milliseconds between activations of the same hotkey
5 setGlobalDelayBetweenHotkeyActivation(1000)

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Mouse Related Functions

Keyboard Related Functions

Global Hotkey Related Functions