On Hotkey

API -

function yourEvent(string_modifier, string_hotkey)
    --isFocused is where the application is focused or not
    --string modifier will contain all modifiers that are held.
    --control+alt+shift
    --hotkey will contain a string based on which key is pressed
    --example: pressing 8 would give: N8
end

return function()
    addEvent('hotkeyPress', 'yourEvent');
    keepAlive();
end

Events are asynchronous coroutines.

Last updated