Project

General

Profile

Globalkeys » History » Version 8

Per Amundsen, 02/16/2023 12:41 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 8 Per Amundsen
table(ktable).
18
|*Switch*|*Description*|
19
| -a | Adds a new key. |
20
| -d | Deletes a key. |
21
| -u | Updates the command for a key. |
22 1 Per Amundsen
23
*Parameters*
24
25 8 Per Amundsen
table(ktable).
26
|*Parameter*|*Description*|
27
| [key] | The key to add. |
28
| [command] | The command to run when the key is pressed. |
29 1 Per Amundsen
30
*Example*
31
32
<pre>
33 5 Per Amundsen
; Create a alias called 'ctrldcommand'.
34
alias ctrldcommand { echo -ag ctrl+D was pressed }
35
36
; Register the shortcut Ctrl+D.
37 1 Per Amundsen
/globalkeys -a Ctrl+D /ctrldcommand
38 7 Per Amundsen
; Pressing CTRL+D will now execute the '/ctrldcommand' alias.
39 1 Per Amundsen
40
; Unregister the hotkey.
41
/globalkeys -d Ctrl+D
42
</pre>