Lua:keyUp

From Cheat Engine
Jump to navigation Jump to search

<> Lua API Reference

function keyUp(Key)

Causes the specified key to go into the "up" (released) state. This simulates releasing a key that was previously pressed.

Function Parameters

Parameter Type Description
Key Integer or Virtual-Key Code The virtual key code of the key to release (e.g., VK_F1, VK_SHIFT).

Examples

1 -- Simulate releasing the left control key
2 keyUp(VK_LCONTROL)
3 
4 -- Simulate releasing the "A" key
5 keyUp(VK_A)

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Mouse Related Functions

Keyboard Related Functions

Global Hotkey Related Functions