Desktop inputOverview
keypress
Represents a keyboard key press.
Details#
Emits a key-down event for a Windows virtual-key code in 0…255; out-of-range codes are ignored. It does not release the key. Pair the call with keyrelease; returns no values.
Examples#
Example
if iswindowactive() then
keypress(0x10) -- Shift
keyrelease(0x10)
end