Globalkeys » History » Version 6
Per Amundsen, 12/26/2018 08:18 PM
| 1 | 1 | Per Amundsen | _Added in 2.9_ |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Per Amundsen | */globalkeys [-adu] [key] [command]* |
| 4 | 1 | Per Amundsen | |
| 5 | Adds a global hotkey which will trigger without AdiIRC window being focused. |
||
| 6 | |||
| 7 | 4 | Per Amundsen | Format is key+key. |
| 8 | 1 | Per Amundsen | |
| 9 | Modifiers: Ctrl, Shift, Alt. |
||
| 10 | |||
| 11 | Valid key names can be found "here":https://msdn.microsoft.com/en-us/library/system.windows.forms.keys(v=vs.110).aspx. |
||
| 12 | |||
| 13 | 3 | Per Amundsen | _Typing /globalkeys with no parameters lists the current keys._ |
| 14 | |||
| 15 | 1 | Per Amundsen | *Switches* |
| 16 | |||
| 17 | -a - Adds a new key. |
||
| 18 | -d - Deletes a key. |
||
| 19 | -u - Updates the command for a key. |
||
| 20 | |||
| 21 | *Parameters* |
||
| 22 | |||
| 23 | [key] - The key to add. |
||
| 24 | [command] - The command to run when the key is pressed. |
||
| 25 | |||
| 26 | *Example* |
||
| 27 | |||
| 28 | <pre> |
||
| 29 | 5 | Per Amundsen | ; Create a alias called 'ctrldcommand'. |
| 30 | alias ctrldcommand { echo -ag ctrl+D was pressed } |
||
| 31 | |||
| 32 | ; Register the shortcut Ctrl+D. |
||
| 33 | 1 | Per Amundsen | /globalkeys -a Ctrl+D /ctrldcommand |
| 34 | 6 | Per Amundsen | ; Pressing CTRL+D will now execute the '/ctrldcommand' command. |
| 35 | 1 | Per Amundsen | |
| 36 | ; Unregister the hotkey. |
||
| 37 | /globalkeys -d Ctrl+D |
||
| 38 | </pre> |