Project

General

Profile

Actions

Globalkeys » History » Revision 7

« Previous | Revision 7/8 (diff) | Next »
Per Amundsen, 12/26/2018 08:19 PM


Added in 2.9

/globalkeys [-adu] [key] [command]

Adds a global hotkey which will trigger without AdiIRC window being focused.

Format is key+key.

Modifiers: Ctrl, Shift, Alt.

Valid key names can be found here.

Typing /globalkeys with no parameters lists the current keys.

Switches

-a - Adds a new key.
-d - Deletes a key.
-u - Updates the command for a key.

Parameters

[key] - The key to add.
[command] - The command to run when the key is pressed.

Example

; Create a alias called 'ctrldcommand'.
alias ctrldcommand { echo -ag ctrl+D was pressed }

; Register the shortcut Ctrl+D.
/globalkeys -a Ctrl+D /ctrldcommand
; Pressing CTRL+D will now execute the '/ctrldcommand' alias.

; Unregister the hotkey.
/globalkeys -d Ctrl+D

Updated by Per Amundsen over 5 years ago · 7 revisions

Also available in: PDF HTML TXT