Lua:keyUp
Jump to navigation
Jump to search
| <> Function 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
-- Simulate releasing the left control key keyUp(VK_LCONTROL) -- Simulate releasing the "A" key keyUp(VK_A)
See also
| Lua |
| Script Engine |
Related Functions
| getMousePos |
| setMousePos |
| isKeyPressed |
| keyDown |
| keyUp |
| doKeyPress |
| mouse_event |
| setGlobalKeyPollInterval |
| setGlobalDelayBetweenHotkeyActivation |