Hotkeys are only recognized while the application is in focus to prevent scripts that can act as keyloggers.
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.
Hotkeys are only available for clients running the windows operating system.